Skip to content

Commit

Permalink
Fix bug 11920
Browse files Browse the repository at this point in the history
DSP LLE Interpreter does not have a DSP thread, so trying to wait would hang. (DSP LLE recompiler also has no thread when in determinism mode).
  • Loading branch information
Pokechu22 committed Apr 10, 2020
1 parent d8d620e commit d3dc81b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Source/Core/Core/HW/DSPLLE/DSPLLE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,12 @@ void DSPLLE::PauseAndLock(bool do_lock, bool unpause_on_unlock)
{
m_dsp_thread_mutex.unlock();

// Signal the DSP thread so it can perform any outstanding work now (if any)
s_ppc_event.Wait();
s_dsp_event.Set();
if (m_is_dsp_on_thread)
{
// Signal the DSP thread so it can perform any outstanding work now (if any)
s_ppc_event.Wait();
s_dsp_event.Set();
}
}
}
} // namespace DSP::LLE

0 comments on commit d3dc81b

Please sign in to comment.