qemu-e2k/target-arm
Peter Maydell 78dbbbe4df target-arm: Avoid "1 << 31" undefined behaviour
Avoid the undefined behaviour of "1 << 31" by using 1U to make
the shift be of an unsigned value rather than shifting into the
sign bit of a signed integer. For consistency, we make all the
CPSR_* constants unsigned, though the only one which triggers
undefined behaviour is CPSR_N.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1378391908-22137-3-git-send-email-peter.maydell@linaro.org
2013-09-10 19:09:32 +01:00
..
arm-semi.c
cpu-qom.h target-arm: Implement the generic timer 2013-08-20 14:54:31 +01:00
cpu.c target-arm: Make '-cpu any' available in linux-user mode only 2013-09-10 19:09:32 +01:00
cpu.h target-arm: Avoid "1 << 31" undefined behaviour 2013-09-10 19:09:32 +01:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper.c target-arm: Avoid "1 << 31" undefined behaviour 2013-09-10 19:09:32 +01:00
helper.h
iwmmxt_helper.c
kvm_arm.h
kvm-stub.c
kvm.c
machine.c target-arm: Implement the generic timer 2013-08-20 14:54:31 +01:00
Makefile.objs cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
neon_helper.c
op_addsub.h
op_helper.c
translate.c target-arm: Use sextract32() in branch decode 2013-09-10 19:09:32 +01:00