diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-06 23:43:26 -0700 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-08-07 12:18:47 -0700 |
commit | 5051d3c4159adabe4c3e8b9233a524894eed6808 (patch) | |
tree | 47f97f82de68bfd25e4f33eb127682b226460ef8 | |
parent | 1798c3b6b0cd4a088be821c604c7ff1617afde7b (diff) |
core: hle: kernel: DisableDispatch on suspend threads.
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 2a984b913..8673384ee 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -1024,6 +1024,9 @@ void KernelCore::Suspend(bool in_suspention) { impl->suspend_threads[core_id]->SetState(state); impl->suspend_threads[core_id]->SetWaitReasonForDebugging( ThreadWaitReasonForDebugging::Suspended); + if (!should_suspend) { + impl->suspend_threads[core_id]->DisableDispatch(); + } } } } |