mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
DSPInterpreter: fix off-by-one errors in cycle counting
This commit is contained in:
parent
c2c30b4d50
commit
72ca41b9bf
1 changed files with 7 additions and 7 deletions
|
@ -76,7 +76,7 @@ int Interpreter::RunCyclesThread(int cycles)
|
||||||
|
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ int Interpreter::RunCyclesDebug(int cycles)
|
||||||
}
|
}
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ int Interpreter::RunCyclesDebug(int cycles)
|
||||||
|
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ int Interpreter::RunCyclesDebug(int cycles)
|
||||||
}
|
}
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
// We don't bother directly supporting pause - if the main emu pauses,
|
// We don't bother directly supporting pause - if the main emu pauses,
|
||||||
// it just won't call this function anymore.
|
// it just won't call this function anymore.
|
||||||
|
@ -160,7 +160,7 @@ int Interpreter::RunCycles(int cycles)
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
|
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ int Interpreter::RunCycles(int cycles)
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
|
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ int Interpreter::RunCycles(int cycles)
|
||||||
{
|
{
|
||||||
Step();
|
Step();
|
||||||
cycles--;
|
cycles--;
|
||||||
if (cycles < 0)
|
if (cycles <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
// We don't bother directly supporting pause - if the main emu pauses,
|
// We don't bother directly supporting pause - if the main emu pauses,
|
||||||
// it just won't call this function anymore.
|
// it just won't call this function anymore.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue