aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2022-10-31 00:58:07 +0100
committerGitHub <noreply@github.com>2022-10-31 00:58:07 +0100
commitd8ff939edcf5b9eb1ae30c22b38e91a3788fcd07 (patch)
tree885092435651e8d327e4876f2a8ced44b86381e9 /src
parente09756b2dfe58d14572537bc94c37bdc664c5346 (diff)
parenteec3184bb0151396e720ff876244aed3829173e2 (diff)
Merge pull request #9158 from liamwhite/single-bore
k_thread: fix single core
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/k_thread.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index d57b42fdf7..cc88d08f03 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/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);