mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 22:58:50 +00:00
Shorten the blr stub a bit.
This commit is contained in:
parent
b597ec3e08
commit
bd4e75e69a
1 changed files with 3 additions and 5 deletions
|
@ -349,12 +349,10 @@ void Jit64::WriteBLRExit()
|
||||||
if (disturbed)
|
if (disturbed)
|
||||||
MOV(32, R(RSCRATCH), PPCSTATE(pc));
|
MOV(32, R(RSCRATCH), PPCSTATE(pc));
|
||||||
CMP(64, R(RSCRATCH), MDisp(RSP, 8));
|
CMP(64, R(RSCRATCH), MDisp(RSP, 8));
|
||||||
FixupBranch nope = J_CC(CC_NE);
|
|
||||||
SUB(32, PPCSTATE(downcount), Imm32(js.downcountAmount));
|
|
||||||
RET();
|
|
||||||
SetJumpTarget(nope);
|
|
||||||
MOV(32, R(RSCRATCH), Imm32(js.downcountAmount));
|
MOV(32, R(RSCRATCH), Imm32(js.downcountAmount));
|
||||||
JMP(asm_routines.dispatcherMispredictedBLR, true);
|
J_CC(CC_NE, asm_routines.dispatcherMispredictedBLR);
|
||||||
|
SUB(32, PPCSTATE(downcount), R(RSCRATCH));
|
||||||
|
RET();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Jit64::WriteRfiExitDestInRSCRATCH()
|
void Jit64::WriteRfiExitDestInRSCRATCH()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue