lr35902: do not clear the interrupt flag when the cpu is halted and no interrupt is taken.

This commit is contained in:
Wilbert Pol 2009-09-15 16:56:04 +00:00
parent 6274492060
commit 45c5b38c2d

View File

@ -266,7 +266,6 @@ INLINE void lr35902_ProcessInterrupts (lr35902_state *cpustate)
if (cpustate->w.enable & HALTED)
{
cpustate->w.enable &= ~HALTED;
cpustate->w.IF &= ~(1 << irqline);
cpustate->w.PC++;
if ( cpustate->w.features & LR35902_FEATURE_HALT_BUG ) {
if ( ! cpustate->w.enable & IME ) {