Ensure that any cycles spent when entering IRQ/NMI in interpreter are

accounted for in the TSC, and by extension the timer system.
This commit is contained in:
SarahW 2020-11-19 22:17:05 +00:00
commit 0cbe6ae918

View file

@ -214,10 +214,6 @@ void exec386(int cycs)
}
}
}
ins_cycles -= cycles;
tsc += ins_cycles;
cycdiff=oldcyc-cycles;
if (cpu_state.smi_pending)
{
@ -291,6 +287,11 @@ void exec386(int cycs)
ins++;
insc++;
ins_cycles -= cycles;
tsc += ins_cycles;
cycdiff=oldcyc-cycles;
if (timetolive)
{
timetolive--;