Improved STI fix.

This commit is contained in:
OBattler
2020-11-21 04:02:58 +01:00
parent ba35c158db
commit b83a32ccf8
2 changed files with 18 additions and 17 deletions

View File

@@ -257,6 +257,9 @@ exec386(int cycs)
if (!use32) cpu_state.pc &= 0xffff;
#endif
if (cpu_end_block_after_ins)
cpu_end_block_after_ins--;
if (cpu_state.abrt) {
flags_rebuild();
tempi = cpu_state.abrt & ABRT_MASK;
@@ -329,8 +332,6 @@ exec386(int cycs)
}
}
cpu_end_block_after_ins = 0;
ins_cycles -= cycles;
tsc += ins_cycles;