target-arm/helper.c:5493: bad test ?
Bug #1550503 reported by
dcb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[qemu/target-
Source code is
but
./qemu/
./qemu/
To post a comment you must log in.
On 26 February 2016 at 20:07, dcb <email address hidden> wrote: arm/helper. c:5493] : (style) Expression '(X & 0x1f) != target- arm/cpu. h:#define CPSR_M (0x1fU) target- arm/cpu. h:#define CPSR_USER (CPSR_NZCV | CPSR_Q | CPSR_GE)
> Public bug reported:
>
> [qemu/target-
> 0xf80f0000' is always true.
>
> Source code is
>
> (env->uncached_cpsr & CPSR_M) != CPSR_USER &&
>
> but
>
> ./qemu/
>
> ./qemu/
Yeah, that's a bug. Should be ARM_CPU_MODE_USR, not CPSR_USER.
thanks
-- PMM