Shave a couple instructions in the common case

This commit is contained in:
Henrik Rydgård committed 2024-05-10 23:23:58 +02:00
1 parent c332d564db
commit 7a097cb34a
1 file changed
+1 -2
+1 -2
View File
@@ -254,11 +254,10 @@ void IRJit::RunLoopUntil(u64 globalticks) {
u32 opcode = inst & 0xFF000000;
if (opcode == MIPS_EMUHACK_OPCODE) {
IRBlock *block = blocks_.GetBlockUnchecked(inst & 0xFFFFFF);
u32 startPC = mips->pc;
mips->pc = IRInterpret(mips, block->GetInstructions(), block->GetNumInstructions());
// Note: this will "jump to zero" on a badly constructed block missing exits.
if (!Memory::IsValid4AlignedAddress(mips->pc)) {
Core_ExecException(mips->pc, startPC, ExecExceptionType::JUMP);
Core_ExecException(mips->pc, block->GetOriginalStart(), ExecExceptionType::JUMP);
break;
}
} else {