diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 08:43:26 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-12-07 01:39:16 +0100 |
commit | 3239442de6204f41054b8c0121420e64f66c832e (patch) | |
tree | c8793d5fb424fa37ec217bcb84557538963f9939 /src/core | |
parent | core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling. (diff) | |
download | yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.gz yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.bz2 yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.lz yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.xz yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.zst yuzu-3239442de6204f41054b8c0121420e64f66c832e.zip |
Diffstat (limited to 'src/core')
-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 288488644..cf155ff66 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -1055,6 +1055,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(); + } } } } |