From 41298a74e182dc1da63b1d279006d42d3d39983b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 12 Dec 2019 23:55:40 +1000 Subject: [PATCH] CPU/Recompiler: Fetch instruction before dispatching interrupts Fixes polygon glitches in Crash. --- src/core/cpu_code_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cpu_code_cache.cpp b/src/core/cpu_code_cache.cpp index 6c55ba21f..9783516af 100644 --- a/src/core/cpu_code_cache.cpp +++ b/src/core/cpu_code_cache.cpp @@ -46,7 +46,7 @@ void CodeCache::Execute() if (m_core->HasPendingInterrupt()) { // TODO: Fill in m_next_instruction... - // m_core->SafeReadMemoryWord(m_core->m_regs.pc, &m_core->m_next_instruction.bits); + m_core->SafeReadMemoryWord(m_core->m_regs.pc, &m_core->m_next_instruction.bits); m_core->DispatchInterrupt(); next_block_key = GetNextBlockKey(); }