From 039510a3e366b8b9979c2f4369ab17fa90937f40 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 26 Nov 2014 23:22:12 -0800 Subject: [PATCH] x86jit: Respect dirty even for non-simd. --- Core/MIPS/x86/RegCacheFPU.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/x86/RegCacheFPU.cpp b/Core/MIPS/x86/RegCacheFPU.cpp index 4638dd43bb..aca5e75244 100644 --- a/Core/MIPS/x86/RegCacheFPU.cpp +++ b/Core/MIPS/x86/RegCacheFPU.cpp @@ -574,7 +574,9 @@ void FPURegCache::StoreFromRegister(int i) { } else { OpArg newLoc = GetDefaultLocation(i); xregs[xr].mipsReg = -1; - emit->MOVSS(newLoc, xr); + if (xregs[xr].dirty) { + emit->MOVSS(newLoc, xr); + } regs[i].location = newLoc; } xregs[xr].dirty = false;