target-i386: fbld instruction doesn't set minus sign

Backports commit 18b41f95d20ac6dbf918c73e704d4ca1fbc1a62f from qemu
This commit is contained in:
Dmitry Poletaev 2018-02-14 16:00:28 -05:00 committed by Lioncash
parent fff0c621da
commit fac60d226a
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -654,7 +654,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr)
} }
tmp = int64_to_floatx80(val, &env->fp_status); tmp = int64_to_floatx80(val, &env->fp_status);
if (cpu_ldub_data(env, ptr + 9) & 0x80) { if (cpu_ldub_data(env, ptr + 9) & 0x80) {
floatx80_chs(tmp); tmp = floatx80_chs(tmp);
} }
fpush(env); fpush(env);
ST0 = tmp; ST0 = tmp;