Don't set oldcpl at the start of each instruction; instead, only set it following a successful CS load.

This commit is contained in:
SarahW 2019-01-27 20:51:13 +00:00
commit c3250ca63e
4 changed files with 18 additions and 5 deletions

View file

@ -925,6 +925,7 @@ static int opLOADALL386(uint32_t fetchdat)
loadall_load_segment(la_addr + 0xc0, &cpu_state.seg_es);
if (CPL==3 && oldcpl!=3) flushmmucache_cr3();
oldcpl = CPL;
CLOCK_CYCLES(350);
return 0;