mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
irjit: Allow IRInterpret() on partial block.
For later if we want to fallback from native to IR interpret.
This commit is contained in:
1 parent
89250bae5f
commit
d4e689b096
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user