Merge pull request #959 from FioraAeterna/fixtimer

JIT: fix regression in timer patch
This commit is contained in:
Dolphin Bot 2014-09-04 00:20:28 +02:00
commit 7a18add39f
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,8 @@ void Jit64::mfspr(UGeckoInstruction inst)
js.downcountAmount++;
js.skipnext = true;
gpr.Lock(d, n);
gpr.BindToRegister(d, false);
gpr.BindToRegister(n, false);
if (iIndex == SPR_TL)
MOV(32, gpr.R(d), R(EAX));
if (nextIndex == SPR_TL)
@ -205,6 +207,7 @@ void Jit64::mfspr(UGeckoInstruction inst)
else
{
gpr.Lock(d);
gpr.BindToRegister(d, false);
if (iIndex == SPR_TU)
SHR(64, R(RAX), Imm8(32));
MOV(32, gpr.R(d), R(EAX));