qemu-e2k/target-sparc
Olivier Danet 6a5b69a959 target-sparc: fix 32bit integer division overflow
The signed integer division -0x8000_0000_0000_0000 / -1 must be handled
separately to avoid an overflow on the QEMU host.

Negative overflow must be a negative number for correct sign
extension in Sparc64 mode. Use <stdint.h> constants.

Signed-off-by: Olivier Danet <odanet@caramail.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
2014-03-26 23:40:40 +00:00
..
cc_helper.c target-sparc: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
cpu-qom.h cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
cpu.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
cpu.h cpu: Move breakpoints field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00
fop_helper.c target-sparc: fix fcmp{s,d,q} instructions wrt exception 2012-09-08 09:03:45 +00:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper.c target-sparc: fix 32bit integer division overflow 2014-03-26 23:40:40 +00:00
helper.h target-sparc: Add and use CPU_FEATURE_CASA 2014-03-12 00:22:01 +00:00
int32_helper.c exec: Change cpu_abort() argument to CPUState 2014-03-13 19:52:28 +01:00
int64_helper.c exec: Change cpu_abort() argument to CPUState 2014-03-13 19:52:28 +01:00
ldst_helper.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
machine.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
Makefile.objs cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
mmu_helper.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
TODO fix spelling in target sub directory 2011-12-02 10:50:57 +00:00
translate.c cpu: Move breakpoints field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00
vis_helper.c target-sparc: Fix mixup of uint64 and uint64_t 2012-01-22 09:55:35 +00:00
win_helper.c target-sparc: Don't overuse CPUState 2012-03-14 22:20:25 +01:00