Skip to content
Permalink
Browse files
Merge pull request #10310 from AdmiralCurtiss/interpreter-cycle-count…
…-debug

Interpreter: Fix cycle counting inconsistency between debug mode and regular mode loops.
  • Loading branch information
JMC47 committed Dec 28, 2021
2 parents 07d26b2 + ebe27e0 commit 2a34118
Showing 1 changed file with 4 additions and 4 deletions.
@@ -260,8 +260,8 @@ void Interpreter::Run()
while (PowerPC::ppcState.downcount > 0)
{
m_end_block = false;
int i;
for (i = 0; !m_end_block; i++)
int cycles = 0;
while (!m_end_block)
{
#ifdef SHOW_HISTORY
s_pc_vec.push_back(PC);
@@ -301,9 +301,9 @@ void Interpreter::Run()
Host_UpdateDisasmDialog();
return;
}
SingleStepInner();
cycles += SingleStepInner();
}
PowerPC::ppcState.downcount -= i;
PowerPC::ppcState.downcount -= cycles;
}
}
else

0 comments on commit 2a34118

Please sign in to comment.