From 58c50c4be7f7299c79178b32a357489aba28a100 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 4ba94286..3e6fd5ac 100644 --- a/CREDITS.TXT +++ b/CREDITS.TXT @@ -73,3 +73,4 @@ Huitao Chen (chenhuitao) & KaiJern Lau (xwings): Cmake support Huitao Chen (chenhuitao) & KaiJern Lau (xwings): Python3 support for building Kevin Foo (chfl4gs): Travis-CI migration 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 f121175c..d4791a2a 100644 --- a/qemu/target-i386/fpu_helper.c +++ b/qemu/target-i386/fpu_helper.c @@ -540,7 +540,7 @@ void helper_fldz_FT0(CPUX86State *env) { //FT0 = floatx80_zero; floatx80 zero = { 0x0000000000000000LL, 0x0000 }; - ST0 = zero; + FT0 = zero; } uint32_t helper_fnstsw(CPUX86State *env)