RSP: Make sure RSP block ends with a ret
This commit is contained in:
parent
9b38977b31
commit
e2243fe8eb
|
@ -930,6 +930,11 @@ void CompilerRSPBlock(void)
|
|||
EndPC = *PrgCount;
|
||||
}
|
||||
} while (NextInstruction != RSPPIPELINE_FINISH_BLOCK && (CompilePC < EndPC || NextInstruction == RSPPIPELINE_DELAY_SLOT || NextInstruction == RSPPIPELINE_DELAY_SLOT_DONE));
|
||||
if (CompilePC >= EndPC)
|
||||
{
|
||||
MoveConstToVariable((CompilePC & 0xFFC), PrgCount, "RSP PC");
|
||||
Ret();
|
||||
}
|
||||
CPU_Message("===== End of recompiled code =====");
|
||||
|
||||
if (Compiler.bReOrdering)
|
||||
|
|
Loading…
Reference in New Issue