CPU/Recompiler: Fetch instruction before dispatching interrupts

Fixes polygon glitches in Crash.
This commit is contained in:
Connor McLaughlin 2019-12-12 23:55:40 +10:00
parent aa52dbfeb8
commit 41298a74e1
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void CodeCache::Execute()
if (m_core->HasPendingInterrupt()) if (m_core->HasPendingInterrupt())
{ {
// TODO: Fill in m_next_instruction... // 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(); m_core->DispatchInterrupt();
next_block_key = GetNextBlockKey(); next_block_key = GetNextBlockKey();
} }