From fac60d226aaf12a6f475ab5ed44a61679a67bb46 Mon Sep 17 00:00:00 2001 From: Dmitry Poletaev Date: Wed, 14 Feb 2018 16:00:28 -0500 Subject: [PATCH] target-i386: fbld instruction doesn't set minus sign Backports commit 18b41f95d20ac6dbf918c73e704d4ca1fbc1a62f from qemu --- qemu/target-i386/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target-i386/fpu_helper.c b/qemu/target-i386/fpu_helper.c index 0a347988..97810205 100644 --- a/qemu/target-i386/fpu_helper.c +++ b/qemu/target-i386/fpu_helper.c @@ -654,7 +654,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr) } tmp = int64_to_floatx80(val, &env->fp_status); if (cpu_ldub_data(env, ptr + 9) & 0x80) { - floatx80_chs(tmp); + tmp = floatx80_chs(tmp); } fpush(env); ST0 = tmp;