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

@ -533,7 +533,6 @@ void exec386_dynarec(int cycs)
{
oldcs = CS;
cpu_state.oldpc = cpu_state.pc;
oldcpl = CPL;
cpu_state.op32 = use32;
@ -549,7 +548,6 @@ void exec386_dynarec(int cycs)
{
oldcs=CS;
cpu_state.oldpc = cpu_state.pc;
oldcpl=CPL;
cpu_state.op32 = use32;
cpu_state.ea_seg = &cpu_state.seg_ds;
@ -708,7 +706,6 @@ inrecomp=0;
{
oldcs=CS;
cpu_state.oldpc = cpu_state.pc;
oldcpl=CPL;
cpu_state.op32 = use32;
cpu_state.ea_seg = &cpu_state.seg_ds;
@ -790,7 +787,6 @@ inrecomp=0;
{
oldcs=CS;
cpu_state.oldpc = cpu_state.pc;
oldcpl=CPL;
cpu_state.op32 = use32;
cpu_state.ea_seg = &cpu_state.seg_ds;