From 018a7f1ec9721208ecf48b5cc2dd8f46f3641170 Mon Sep 17 00:00:00 2001 From: magumagu Date: Sat, 21 Feb 2015 09:30:22 -0800 Subject: [PATCH] Fix registersInUse in Jit64::lmw. Doesn't fix any known issue at the moment, but I ran into this bug with dynamic-bat. --- Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index 6c25c1f752..53c2479729 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -527,7 +527,7 @@ void Jit64::lmw(UGeckoInstruction inst) ADD(32, R(RSCRATCH2), gpr.R(inst.RA)); for (int i = inst.RD; i < 32; i++) { - SafeLoadToReg(RSCRATCH, R(RSCRATCH2), 32, (i - inst.RD) * 4, CallerSavedRegistersInUse() | BitSet32 { RSCRATCH_EXTRA }, false); + SafeLoadToReg(RSCRATCH, R(RSCRATCH2), 32, (i - inst.RD) * 4, CallerSavedRegistersInUse() | BitSet32 { RSCRATCH2 }, false); gpr.BindToRegister(i, false, true); MOV(32, gpr.R(i), R(RSCRATCH)); }