qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Bug 1550503] [NEW] target-arm/helper.c:5493: bad test


From: Peter Maydell
Subject: Re: [Qemu-devel] [Bug 1550503] [NEW] target-arm/helper.c:5493: bad test ?
Date: Sat, 27 Feb 2016 16:06:52 +0000

On 26 February 2016 at 20:07, dcb <address@hidden> wrote:
> Public bug reported:
>
> [qemu/target-arm/helper.c:5493]: (style) Expression '(X & 0x1f) !=
> 0xf80f0000' is always true.
>
> Source code is
>
>         (env->uncached_cpsr & CPSR_M) != CPSR_USER &&
>
> but
>
> ./qemu/target-arm/cpu.h:#define CPSR_M (0x1fU)
>
> ./qemu/target-arm/cpu.h:#define CPSR_USER (CPSR_NZCV | CPSR_Q | CPSR_GE)

Yeah, that's a bug. Should be ARM_CPU_MODE_USR, not CPSR_USER.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]