xemu/hw/openrisc
Jia Liu 7717f248ee hw/openrisc: Avoid undefined shift in openrisc_pic_cpu_handler()
In C99 signed shift (1 << 31) is undefined behavior, since the result
exceeds INT_MAX.  Use 1U instead and move the shift after the check.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Acked-by: Jia Liu <proljc@gmail.com>
2013-08-21 09:31:42 +08:00
..
cputimer.c cpu: Move halted and interrupt_request fields to CPUState 2013-03-12 10:35:55 +01:00
Makefile.objs hw: move boards and other isolated files to hw/ARCH 2013-03-01 15:01:19 +01:00
openrisc_sim.c hw/openrisc: Avoid using uninitialised variable 'entry' 2013-08-21 09:15:36 +08:00
pic_cpu.c hw/openrisc: Avoid undefined shift in openrisc_pic_cpu_handler() 2013-08-21 09:31:42 +08:00