mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Core: when scheduling an invalidate cpu cache, no need to schedule if we're already on the cpu thread
This commit is contained in:
@ -283,7 +283,7 @@ void Reset()
|
||||
|
||||
void ScheduleInvalidateCacheThreadSafe(u32 address)
|
||||
{
|
||||
if (CPU::GetState() == CPU::State::Running)
|
||||
if (CPU::GetState() == CPU::State::Running && !Core::IsCPUThread())
|
||||
{
|
||||
Core::System::GetInstance().GetCoreTiming().ScheduleEvent(
|
||||
0, s_invalidate_cache_thread_safe, address, CoreTiming::FromThread::NON_CPU);
|
||||
|
Reference in New Issue
Block a user