Skip to content

Commit 826f102

Browse files
committed
CPU/Recompiler: Flush GTE completion cycle on load without fastmem
1 parent 78bb14b commit 826f102

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/core/cpu_recompiler.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,12 @@ void CPU::Recompiler::Recompiler::CompileLoadStoreTemplate(
17031703
}
17041704
}
17051705

1706+
// when not using fastmem, flush GTE completion cycle
1707+
// otherwise we end up consuming more cycles, because we're only counting a single cycle for loads
1708+
// and ram loads would have normally used up all the cycles the GTE was busy for
1709+
if (!use_fastmem && !store)
1710+
Flush(FLUSH_GTE_DONE_CYCLE);
1711+
17061712
(this->*func)(cf, size, sign, use_fastmem, addr);
17071713

17081714
if (store && !m_block_ended && !m_current_instruction_branch_delay_slot && spec_addr.has_value() &&

0 commit comments

Comments
 (0)