From a896d6c0ab73e402842cedd2d8192d64dfc30970 Mon Sep 17 00:00:00 2001 From: svenschneider <-> Date: Thu, 23 Jul 2015 21:11:55 +0200 Subject: [PATCH] target-i386: Fix conversion infinity from float80 to int64 --- target-i386/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c index 280adba..1f954e0 100644 --- a/target-i386/fpu_helper.c +++ b/target-i386/fpu_helper.c @@ -272,7 +272,7 @@ int64_t helper_fistll_ST0(CPUX86State *env) old_exp_flags = get_float_exception_flags(&env->fp_status); set_float_exception_flags(0, &env->fp_status); - val = floatx80_to_int32(ST0, &env->fp_status); + val = floatx80_to_int64(ST0, &env->fp_status); if (get_float_exception_flags(&env->fp_status) & float_flag_invalid) { val = 0x8000000000000000ULL; } -- 2.4.6