Both recompilers now check for interrupt after every instruction and exit the block if one has happened.

This commit is contained in:
OBattler
2020-07-13 01:23:40 +02:00
parent 099fd2fc34
commit 0cd0d83cee
6 changed files with 58 additions and 2 deletions

View File

@@ -303,6 +303,23 @@ void update_tsc(void)
}
}
int int_check(void)
{
if (cpu_state.abrt)
return 1;
if (trap)
return 1;
else if (smi_line)
return 1;
else if (nmi && nmi_enable && nmi_mask)
return 1;
else if ((cpu_state.flags & I_FLAG) && pic_intpending)
return 1;
return 0;
}
void exec386_dynarec(int cycs)
{
int vector;