From: Dmitry Poletaev Date: Wed, 8 Jul 2015 09:48:40 +0000 (+0300) Subject: target-i386/FPU: a misprint in helper_fistll_ST0 X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~32^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=178846bdd93994c1acafe4423f99ead8bb24cf38;p=sdk%2Femulator%2Fqemu.git target-i386/FPU: a misprint in helper_fistll_ST0 There is a cut-and-paste mistake in the patch https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg01657.html . It cause errors in guest work. Here is the bugfix. Signed-off-by: Dmitry Poletaev Reported-by: Kirill Batuzov Message-Id: <2692911436348920@web2m.yandex.ru> Signed-off-by: Paolo Bonzini --- 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; }