Explorar o código

k_thread: fix single core

Liam %!s(int64=3) %!d(string=hai) anos
pai
achega
eec3184bb0
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/core/hle/kernel/k_thread.cpp

+ 4 - 2
src/core/hle/kernel/k_thread.cpp

@@ -1185,8 +1185,10 @@ void KThread::RequestDummyThreadWait() {
 }
 
 void KThread::DummyThreadBeginWait() {
-    ASSERT(this->IsDummyThread());
-    ASSERT(!kernel.IsPhantomModeForSingleCore());
+    if (!this->IsDummyThread() || kernel.IsPhantomModeForSingleCore()) {
+        // Occurs in single core mode.
+        return;
+    }
 
     // Block until runnable is no longer false.
     dummy_thread_runnable.wait(false);