Don't waste time looking up the block if enableBlocklink is off anyway.

This commit is contained in:
comex 2013-10-08 19:07:30 -04:00
parent 0dd32986b8
commit d5e40bfb01

View File

@ -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()
{ {