summaryrefslogtreecommitdiff
path: root/target-ppc/user_only_helper.c
diff options
context:
space:
mode:
authorTom Musta <tommusta@gmail.com>2014-03-31 16:03:56 -0500
committerAlexander Graf <agraf@suse.de>2014-04-08 11:20:01 +0200
commit0453099b7d20c9fc2946ed74f1d965ae4d173d19 (patch)
tree90d67d46e654aeaca784117a15c0a1d93f0737c7 /target-ppc/user_only_helper.c
parenta13d44896854329581ba48607d66c6b2aec157f7 (diff)
downloadqemu-0453099b7d20c9fc2946ed74f1d965ae4d173d19.zip
target-ppc: Bug: VSX Convert to Integer Should Truncate
The various VSX Convert to Integer instructions should truncate the floating point number to an integer value, which is equivalent to a round-to-zero rounding mode. The existing VSX floating point to integer conversion helpers are erroneously using the rounding mode set int the PowerPC Floating Point Status and Control Register (FPSCR). This change corrects this defect by using the appropriate float*_to_*_round_to_zero() routines fro the softfloat library. Signed-off-by: Tom Musta <tommusta@gmail.com> Tested-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/user_only_helper.c')
0 files changed, 0 insertions, 0 deletions