summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-10 23:29:02 +0100
committerbunnei <bunneidev@gmail.com>2021-01-11 23:23:17 +0100
commit03dfc8d8e74910d447b755e00848a623ec65cd93 (patch)
tree56a80760bd0ba8ecd85dc8d9f09fb9e2068c91d4 /src/core/hle/kernel/kernel.cpp
parentyuzu: debugger: wait_tree: Handle unknown ThreadState. (diff)
downloadyuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar
yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.gz
yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.bz2
yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.lz
yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.xz
yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.tar.zst
yuzu-03dfc8d8e74910d447b755e00848a623ec65cd93.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 8d03f16fb..c0ff287a6 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -605,6 +605,8 @@ void KernelCore::Suspend(bool in_suspention) {
const auto state = should_suspend ? ThreadState::Runnable : ThreadState::Waiting;
for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) {
impl->suspend_threads[i]->SetState(state);
+ impl->suspend_threads[i]->SetWaitReasonForDebugging(
+ ThreadWaitReasonForDebugging::Suspended);
}
}
}