Merge pull request #4198 from aldelaro5/memory-breakpoint-fix

Fix the memChecks breaking a second time after hitting one and unpausing
This commit is contained in:
Scott Mansell 2016-09-12 14:51:47 +12:00 committed by GitHub
commit 65c1df34f4

View File

@ -90,10 +90,12 @@ void Run()
{
if (PowerPC::breakpoints.IsAddressBreakPoint(PC) || PowerPC::memchecks.HasAny())
{
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;
}
}