]> git.proxmox.com Git - qemu.git/commit
target-arm: fix sdiv helper
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 15 Oct 2009 21:08:46 +0000 (23:08 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 22 Oct 2009 22:05:17 +0000 (00:05 +0200)
commit686eeb93d5738c84c59395b2ec6f8181c2b7cbed
tree13b0a3533034804c14ed2e51c401f02de5302a45
parent7bbcb0afe715c36545bbbd872441c473927c1a4e
target-arm: fix sdiv helper

(INT32_MIN / -1) triggers an overflow, and the result depends on the
host architecture (INT32_MIN on arm, -1 on ppc, SIGFPE on x86). Use a
test to output the correct value.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Acked-by: Laurent Desnogues <laurent.desnogues@gmail.com>
target-arm/helper.c