Core: Ignore next targeting branch if last op in block

This commit is contained in:
zilmar 2022-10-10 14:30:20 +10:30
parent 0848bab003
commit 29e1468338
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ void CX86RecompilerOps::Compile_Branch(RecompilerBranchCompare CompareType, bool
{
CompileCop1Test();
}
if (m_CompilePC + ((int16_t)m_Opcode.offset << 2) + 4 == m_CompilePC + 8)
if (m_CompilePC + ((int16_t)m_Opcode.offset << 2) + 4 == m_CompilePC + 8 && (m_CompilePC & 0xFFC) != 0xFFC)
{
m_PipelineStage = PIPELINE_STAGE_DO_DELAY_SLOT;
return;