mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-10 21:37:20 +00:00
CPU/CodeCache: Don't create a branch block with no delay slot
Can't compile that.
This commit is contained in:
parent
2e4eaeafdc
commit
b36e2ce6be
@ -934,6 +934,11 @@ bool CPU::CodeCache::ReadBlockInstructions(u32 start_pc, BlockInstructionList* i
|
||||
{
|
||||
// Away to the int you go!
|
||||
ERROR_LOG("Instruction read failed at PC=0x{:08X}, truncating block.", pc);
|
||||
|
||||
// If the last instruction was a branch, we need the delay slot in the block to compile it.
|
||||
if (is_branch_delay_slot)
|
||||
instructions->pop_back();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user