Refactor timing to allow sync/updates in the middle of a slice

This commit is contained in:
Connor McLaughlin 2019-09-20 23:59:48 +10:00
commit c988af453c
10 changed files with 74 additions and 36 deletions

View file

@ -57,7 +57,9 @@ void InterruptController::WriteRegister(u32 offset, u32 value)
{
case 0x00: // I_STATUS
{
Log_DebugPrintf("Clearing bits 0x%08X", value);
if ((m_interrupt_status_register & ~value) != 0)
Log_DebugPrintf("Clearing bits 0x%08X", (m_interrupt_status_register & ~value));
m_interrupt_status_register = m_interrupt_status_register & (value & REGISTER_WRITE_MASK);
UpdateCPUInterruptRequest();
}