Debugger: Prevent debugger tools from affecting the dma nmi/irq delay flag
This commit is contained in:
parent
b1d1a3f466
commit
407f72aafc
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue