summaryrefslogtreecommitdiff
path: root/target-s390x/fpu_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-09-09 16:04:17 -0700
committerRichard Henderson <rth@twiddle.net>2013-01-05 12:18:45 -0800
commitd2d9feac6fa9f6fd40e8f251bcfdd9a9a0f421f8 (patch)
treedac88d37efe90f26daeee4349510affda4b155f9 /target-s390x/fpu_helper.c
parent1d1f63013539bccc877899116cccf106d318b04a (diff)
downloadqemu-d2d9feac6fa9f6fd40e8f251bcfdd9a9a0f421f8.tar.gz
qemu-d2d9feac6fa9f6fd40e8f251bcfdd9a9a0f421f8.tar.bz2
qemu-d2d9feac6fa9f6fd40e8f251bcfdd9a9a0f421f8.zip
target-s390: Use uint64_to_float128
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-s390x/fpu_helper.c')
-rw-r--r--target-s390x/fpu_helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-s390x/fpu_helper.c b/target-s390x/fpu_helper.c
index 58c2e6135c..b6e5040ff5 100644
--- a/target-s390x/fpu_helper.c
+++ b/target-s390x/fpu_helper.c
@@ -419,8 +419,7 @@ uint64_t HELPER(cdlgb)(CPUS390XState *env, uint64_t v2, uint32_t m3)
uint64_t HELPER(cxlgb)(CPUS390XState *env, uint64_t v2, uint32_t m3)
{
int hold = swap_round_mode(env, m3);
- /* ??? Not 50% correct. */
- float128 ret = int64_to_float128(v2, &env->fpu_status);
+ float128 ret = uint64_to_float128(v2, &env->fpu_status);
set_float_rounding_mode(hold, &env->fpu_status);
handle_exceptions(env, GETPC());
return RET128(ret);