From f27c6fa655583a58ce0da7707b5533b22ced583e Mon Sep 17 00:00:00 2001 From: Sven Almgren Date: Sat, 8 May 2021 12:45:14 +0200 Subject: [PATCH] X86 instruction FTST was incorrectly overwriting ST0 instead of FT0 (#1372) * X86 instruction FTST was incorrectly overwriting ST0 instead of FT0 * credits update --- CREDITS.TXT | 1 + qemu/target/i386/fpu_helper.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CREDITS.TXT b/CREDITS.TXT index 8f5970d6..47cd8105 100644 --- a/CREDITS.TXT +++ b/CREDITS.TXT @@ -78,3 +78,4 @@ Kevin Foo (chfl4gs): Travis-CI migration Simon Gorchakov: PowerPC target Stuart Dootson (studoot): MSVC compatibility with PowerPC target support Ziqiao Kong (lazymio): uc_context_free() API and various bug fix & improvement. +Sven Almgren (blindmatrix): bug fix diff --git a/qemu/target/i386/fpu_helper.c b/qemu/target/i386/fpu_helper.c index 48a23c3b..b4eda9c7 100644 --- a/qemu/target/i386/fpu_helper.c +++ b/qemu/target/i386/fpu_helper.c @@ -570,7 +570,7 @@ void helper_fldz_FT0(CPUX86State *env) { //FT0 = floatx80_zero; floatx80 zero = { 0x0000000000000000LL, 0x0000 }; - ST0 = zero; + FT0 = zero; } uint32_t helper_fnstsw(CPUX86State *env)