Skip to content

Commit

Permalink
Merge pull request #4198 from aldelaro5/memory-breakpoint-fix
Browse files Browse the repository at this point in the history
Fix the memChecks breaking a second time after hitting one and unpausing
  • Loading branch information
phire committed Sep 12, 2016
2 parents 609d147 + f689b1e commit 65c1df3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Core/HW/CPU.cpp
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 65c1df3

Please sign in to comment.