Skip to content

Commit

Permalink
x86jit: when reusing a reg, don't zap slot.
Browse files Browse the repository at this point in the history
If we returned the same reg it was in before, don't zap the slots because
slot #1 may be valid.
  • Loading branch information
unknownbrackets committed Nov 30, 2014
1 parent c3578bd commit 679a824
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/MIPS/x86/RegCacheFPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ bool FPURegCache::TryMapRegsVS(const u8 *v, VectorSize vsz, int flags) {
if (vr.away) {
// Clear the xreg it was in before.
X64Reg oldXReg = vr.location.GetSimpleReg();
xregs[oldXReg].mipsReg = -1;
if (oldXReg != xr) {
xregs[oldXReg].mipsReg = -1;
}
if (xregs[oldXReg].dirty) {
// Inherit the "dirtiness" (ultimately set below for all regs.)
dirty = true;
Expand Down

0 comments on commit 679a824

Please sign in to comment.