commit | 6a5b69a959483c7404576a7dc54221ced41e6515 | [log] [tgz] |
---|---|---|
author | Olivier Danet <odanet@caramail.com> | Fri Mar 21 02:25:19 2014 +0100 |
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | Wed Mar 26 23:40:40 2014 +0000 |
tree | 0fcc76ec56735b99521a6c53762bb59787920120 | |
parent | db237e33c08a279f0179f8f5128a6d10d9adc38a [diff] |
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>