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
|
@ -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…
Reference in New Issue