summary refs log tree commit diff stats
path: root/scripts/simpletrace.py
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-01-17 19:29:33 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-01-20 15:11:07 +0100
commit96912e39709e8455c013931513eebe8e6356eab4 (patch)
tree9147970e19a023167d3bc899e7ceaed371b301f5 /scripts/simpletrace.py
parentb2bf03a90ca3024213e354d3e0a6bc0cc8fc31e8 (diff)
downloadfocaccia-qemu-96912e39709e8455c013931513eebe8e6356eab4.tar.gz
focaccia-qemu-96912e39709e8455c013931513eebe8e6356eab4.zip
target-ppc: fix sNaN propagation
The current FPU code returns 0.0 if one of the operand is a
signaling NaN and the VXSNAN exception is disabled.

fload_invalid_op_excp() doesn't return a qNaN in case of a VXSNAN
exception as the operand should be propagated instead of a new
qNaN to be generated. Fix that by calling fload_invalid_op_excp()
only for the exception generation (if enabled), and use the softfloat
code to correctly compute the result.

Reviewed-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'scripts/simpletrace.py')
0 files changed, 0 insertions, 0 deletions