Don't set cpu_state.oldpc at the start of every iteration of the recompiler main loop.

This commit is contained in:
SarahW 2019-01-28 19:25:09 +00:00
commit 427aa72a15

View file

@ -532,8 +532,6 @@ void exec386_dynarec(int cycs)
while (cycles>0) while (cycles>0)
{ {
oldcs = CS; oldcs = CS;
cpu_state.oldpc = cpu_state.pc;
oldcyc=cycles; oldcyc=cycles;
// if (output && CACHE_ON()) pclog("Block %04x:%04x %04x:%08x\n", CS, pc, SS,ESP); // if (output && CACHE_ON()) pclog("Block %04x:%04x %04x:%08x\n", CS, pc, SS,ESP);
@ -835,6 +833,9 @@ inrecomp=0;
// output &= ~2; // output &= ~2;
} }
else
cpu_state.oldpc = cpu_state.pc;
// if (output && (SP & 1)) // if (output && (SP & 1))
// fatal("odd SP\n"); // fatal("odd SP\n");
} }