From 68972da1e5c8717cffa924c272a1544617dcf0f5 Mon Sep 17 00:00:00 2001 From: Fiora Date: Sat, 6 Dec 2014 16:09:13 -0800 Subject: JIT: fix possible panicalert in loadstore Didn't bind address register tcorrectly in a very rare case. --- Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core') diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index c8fd0555c1..bf6f76beda 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -167,7 +167,8 @@ void Jit64::lXXx(UGeckoInstruction inst) { if (inst.OPCD == 31) { - gpr.Lock(b); + if (!gpr.R(b).IsImm()) + gpr.BindToRegister(b, true, false); opAddress = gpr.R(b); } else -- cgit v1.2.3