mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Don't waste time looking up the block if enableBlocklink is off anyway.
This commit is contained in:
parent
0dd32986b8
commit
d5e40bfb01
@ -298,19 +298,20 @@ void Jit64::WriteExit(u32 destination, int exit_num)
|
|||||||
b->exitPtrs[exit_num] = GetWritableCodePtr();
|
b->exitPtrs[exit_num] = GetWritableCodePtr();
|
||||||
|
|
||||||
// Link opportunity!
|
// Link opportunity!
|
||||||
|
if (jo.enableBlocklink)
|
||||||
|
{
|
||||||
int block = blocks.GetBlockNumberFromStartAddress(destination);
|
int block = blocks.GetBlockNumberFromStartAddress(destination);
|
||||||
if (block >= 0 && jo.enableBlocklink)
|
if (block >= 0)
|
||||||
{
|
{
|
||||||
// It exists! Joy of joy!
|
// It exists! Joy of joy!
|
||||||
JMP(blocks.GetBlock(block)->checkedEntry, true);
|
JMP(blocks.GetBlock(block)->checkedEntry, true);
|
||||||
b->linkStatus[exit_num] = true;
|
b->linkStatus[exit_num] = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
MOV(32, M(&PC), Imm32(destination));
|
MOV(32, M(&PC), Imm32(destination));
|
||||||
JMP(asm_routines.dispatcher, true);
|
JMP(asm_routines.dispatcher, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Jit64::WriteExitDestInEAX()
|
void Jit64::WriteExitDestInEAX()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user