Applied mainline PCem revision 522 commit: REP instructions now handle trap flag correctly, Windows NT 3.51 now works on 386 systems.

This commit is contained in:
OBattler
2016-06-29 01:28:59 +02:00
parent fd2a5bc9f5
commit 296b7881ff

View File

@@ -297,7 +297,10 @@ int rep386(int fv)
that high frequency timers still work okay. This amount is different that high frequency timers still work okay. This amount is different
for interpreter and recompiler*/ for interpreter and recompiler*/
int cycles_end = cycles - ((is386 && cpu_use_dynarec) ? 1000 : 100); int cycles_end = cycles - ((is386 && cpu_use_dynarec) ? 1000 : 100);
if (trap)
cycles_end = cycles+1; /*Force the instruction to end after only one iteration when trap flag set*/
cpu_reps++; cpu_reps++;
flags_rebuild(); flags_rebuild();