mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Shave a couple instructions in the common case
This commit is contained in:
1 parent
c332d564db
commit
7a097cb34a
1 file changed
+1
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user