mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
minor fix for r6486
Return values from RunCycles isn't consistent/meaningful at the moment so assuming it runs as many cycles as asked. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6487 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
6a6fb9cce9
commit
ae2c934795
1 changed files with 5 additions and 1 deletions
|
@ -188,7 +188,11 @@ THREAD_RETURN dsp_thread(void* lpParameter)
|
||||||
{
|
{
|
||||||
int cycles = (int)cycle_count;
|
int cycles = (int)cycle_count;
|
||||||
if (cycles > 0) {
|
if (cycles > 0) {
|
||||||
cycles -= jit ? DSPCore_RunCycles(cycles) : DSPInterpreter::RunCycles(cycles);
|
if (jit)
|
||||||
|
DSPCore_RunCycles(cycles);
|
||||||
|
else
|
||||||
|
DSPInterpreter::RunCycles(cycles);
|
||||||
|
|
||||||
Common::AtomicAdd(cycle_count, -cycles);
|
Common::AtomicAdd(cycle_count, -cycles);
|
||||||
}
|
}
|
||||||
// yield?
|
// yield?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue