Skip to content

Commit

Permalink
Merge pull request #959 from FioraAeterna/fixtimer
Browse files Browse the repository at this point in the history
JIT: fix regression in timer patch
  • Loading branch information
dolphin-emu-bot committed Sep 3, 2014
2 parents e124859 + 068b5c2 commit 7a18add
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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));
Expand Down

0 comments on commit 7a18add

Please sign in to comment.