Merge pull request #959 from FioraAeterna/fixtimer
JIT: fix regression in timer patch
This commit is contained in:
commit
7a18add39f
|
@ -192,6 +192,8 @@ void Jit64::mfspr(UGeckoInstruction inst)
|
||||||
js.downcountAmount++;
|
js.downcountAmount++;
|
||||||
js.skipnext = true;
|
js.skipnext = true;
|
||||||
gpr.Lock(d, n);
|
gpr.Lock(d, n);
|
||||||
|
gpr.BindToRegister(d, false);
|
||||||
|
gpr.BindToRegister(n, false);
|
||||||
if (iIndex == SPR_TL)
|
if (iIndex == SPR_TL)
|
||||||
MOV(32, gpr.R(d), R(EAX));
|
MOV(32, gpr.R(d), R(EAX));
|
||||||
if (nextIndex == SPR_TL)
|
if (nextIndex == SPR_TL)
|
||||||
|
@ -205,6 +207,7 @@ void Jit64::mfspr(UGeckoInstruction inst)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gpr.Lock(d);
|
gpr.Lock(d);
|
||||||
|
gpr.BindToRegister(d, false);
|
||||||
if (iIndex == SPR_TU)
|
if (iIndex == SPR_TU)
|
||||||
SHR(64, R(RAX), Imm8(32));
|
SHR(64, R(RAX), Imm8(32));
|
||||||
MOV(32, gpr.R(d), R(EAX));
|
MOV(32, gpr.R(d), R(EAX));
|
||||||
|
|
Loading…
Reference in New Issue