summaryrefslogtreecommitdiffstats
path: root/hwaddr.h
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2012-10-09 21:53:21 +0200
committerAurelien Jarno <aurelien@aurel32.net>2012-10-31 22:20:48 +0100
commit51127181cfac0315720e6ca502eb133a353f6b11 (patch)
tree19573138089d6e5d3e95948b3bee16bfcb3a35a4 /hwaddr.h
parentacf124655873cf7256877a35efd8dacca1b199d8 (diff)
downloadhqemu-51127181cfac0315720e6ca502eb133a353f6b11.zip
hqemu-51127181cfac0315720e6ca502eb133a353f6b11.tar.gz
target-mips: optimize ddiv/ddivu/div/divu with movcond
The result of a division by 0, or a division of INT_MIN by -1 in the signed case, is unpredictable. Just replace 0 by 1 in that case so that it doesn't trigger a floating point exception on the host. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hwaddr.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud