irjit: Allow IRInterpret() on partial block.

For later if we want to fallback from native to IR interpret.
This commit is contained in:
Unknown W. Brackets committed 2023-07-16 16:19:53 -07:00
1 parent 89250bae5f
commit d4e689b096
2 files changed
+2 -2

No files matched your search

+1 -2
View File
@@ -1053,7 +1053,6 @@ u32 IRInterpret(MIPSState *mips, const IRInst *inst, int count) {
inst++;
}
// If we got here, the block was badly constructed.
Crash();
// We hit count. If this is a full block, it was badly constructed.
return 0;
}
+1
View File
@@ -229,6 +229,7 @@ void IRJit::RunLoopUntil(u64 globalticks) {
IRBlock *block = blocks_.GetBlock(data);
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::IsValidAddress(mips_->pc) || (mips_->pc & 3) != 0) {
Core_ExecException(mips_->pc, startPC, ExecExceptionType::JUMP);
break;