Switch the CPU state to CPU_STEPPING before single stepping after unpausing

This fix a double break bug when hitting a memcheck and hitting play on the same instruction it broke to earlier.  The state is put back to CPU_RUNNING after.
This commit is contained in:
aldelaro5 2016-09-11 22:46:12 -04:00
parent 18030ebfb4
commit f689b1e6b5
1 changed files with 2 additions and 0 deletions

View File

@ -92,10 +92,12 @@ void Run()
if (PowerPC::breakpoints.IsAddressBreakPoint(PC))
#endif
{
s_state = CPU_STEPPING;
PowerPC::CoreMode old_mode = PowerPC::GetMode();
PowerPC::SetMode(PowerPC::MODE_INTERPRETER);
PowerPC::SingleStep();
PowerPC::SetMode(old_mode);
s_state = CPU_RUNNING;
}
}