[Core/CPU] fixed M68K STOP instruction edge case (case where STOP instruction unmasks pending interrupt)

This commit is contained in:
ekeeke 2019-03-23 13:46:23 +01:00
parent e819af4553
commit c953707ef5

View File

@ -20967,7 +20967,10 @@ static void m68k_op_stop(void)
uint new_sr = OPER_I_16();
CPU_STOPPED |= STOP_LEVEL_STOP;
m68ki_set_sr(new_sr);
SET_CYCLES(m68ki_cpu.cycle_end - 4*MUL);
if (CPU_STOPPED)
{
SET_CYCLES(m68ki_cpu.cycle_end - 4*MUL);
}
return;
}
m68ki_exception_privilege_violation();