diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 08:16:36 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-08-07 21:18:47 +0200 |
commit | d1c502720d9adec47047800896594886e7952693 (patch) | |
tree | 923693df003ae4f3699cd1473ecddf22dd674c3e /src/core | |
parent | core: hle: kernel: k_scheduler: Improve ScheduleImpl. (diff) | |
download | yuzu-d1c502720d9adec47047800896594886e7952693.tar yuzu-d1c502720d9adec47047800896594886e7952693.tar.gz yuzu-d1c502720d9adec47047800896594886e7952693.tar.bz2 yuzu-d1c502720d9adec47047800896594886e7952693.tar.lz yuzu-d1c502720d9adec47047800896594886e7952693.tar.xz yuzu-d1c502720d9adec47047800896594886e7952693.tar.zst yuzu-d1c502720d9adec47047800896594886e7952693.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/k_scheduler.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp index e523c4923..f5236dfea 100644 --- a/src/core/hle/kernel/k_scheduler.cpp +++ b/src/core/hle/kernel/k_scheduler.cpp @@ -699,11 +699,6 @@ void KScheduler::Reload(KThread* thread) { if (thread) { ASSERT_MSG(thread->GetState() == ThreadState::Runnable, "Thread must be runnable."); - auto* const thread_owner_process = thread->GetOwnerProcess(); - if (thread_owner_process != nullptr) { - system.Kernel().MakeCurrentProcess(thread_owner_process); - } - Core::ARM_Interface& cpu_core = system.ArmInterface(core_id); cpu_core.LoadContext(thread->GetContext32()); cpu_core.LoadContext(thread->GetContext64()); |