JIT: fix possible panicalert in loadstore

Didn't bind address register tcorrectly in a very rare case.
This commit is contained in:
Fiora 2014-12-06 16:09:13 -08:00
parent f00ad2e65c
commit 68972da1e5
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ void Jit64::lXXx(UGeckoInstruction inst)
{ {
if (inst.OPCD == 31) if (inst.OPCD == 31)
{ {
gpr.Lock(b); if (!gpr.R(b).IsImm())
gpr.BindToRegister(b, true, false);
opAddress = gpr.R(b); opAddress = gpr.R(b);
} }
else else