Debugger: Prevent debugger tools from affecting the dma nmi/irq delay flag

This commit is contained in:
Sour 2019-04-06 09:14:49 -04:00
parent b1d1a3f466
commit 407f72aafc

View file

@ -62,9 +62,7 @@ void Cpu::Exec()
case CpuStopState::WaitingForIrq:
//WAI
if(!_state.IrqSource && !_state.NmiFlag) {
#ifndef DUMMYCPU
Idle();
#endif
} else {
Idle();
Idle();
@ -73,6 +71,7 @@ void Cpu::Exec()
break;
}
#ifndef DUMMYCPU
//Use the state of the IRQ/NMI flags on the previous cycle to determine if an IRQ is processed or not
if(!_dmaController->HasNmiIrqDelay()) {
if(_state.PrevNmiFlag) {
@ -86,6 +85,7 @@ void Cpu::Exec()
_console->ProcessInterrupt(originalPc, GetProgramAddress(_state.PC), false);
}
}
#endif
}
void Cpu::RunOp()