VU-JIT: Avoid writeReg stealing loadReg GPR

This commit is contained in:
refractionpcsx2 2023-04-23 02:08:27 +01:00
parent dc93e861c7
commit dc4ce58248
1 changed files with 4 additions and 1 deletions

View File

@ -1015,6 +1015,9 @@ public:
microMapGPR& mapI = gprMap[i];
if (mapI.VIreg == viLoadReg)
{
// Do this first, there is a case where when loadReg != writeReg, the findFreeGPR can steal the loadReg
gprMap[i].count = this_counter;
if (viWriteReg >= 0) // Reg will be modified
{
if (viLoadReg != viWriteReg)
@ -1058,7 +1061,7 @@ public:
xMOVZX(xRegister32(i), xRegister16(i));
gprMap[i].isZeroExtended = true;
}
gprMap[i].count = this_counter;
gprMap[i].isNeeded = true;
if (backup)