diff options
Diffstat (limited to 'src/core/hle/kernel')
| -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) { | |||
| 699 | if (thread) { | 699 | if (thread) { |
| 700 | ASSERT_MSG(thread->GetState() == ThreadState::Runnable, "Thread must be runnable."); | 700 | ASSERT_MSG(thread->GetState() == ThreadState::Runnable, "Thread must be runnable."); |
| 701 | 701 | ||
| 702 | auto* const thread_owner_process = thread->GetOwnerProcess(); | ||
| 703 | if (thread_owner_process != nullptr) { | ||
| 704 | system.Kernel().MakeCurrentProcess(thread_owner_process); | ||
| 705 | } | ||
| 706 | |||
| 707 | Core::ARM_Interface& cpu_core = system.ArmInterface(core_id); | 702 | Core::ARM_Interface& cpu_core = system.ArmInterface(core_id); |
| 708 | cpu_core.LoadContext(thread->GetContext32()); | 703 | cpu_core.LoadContext(thread->GetContext32()); |
| 709 | cpu_core.LoadContext(thread->GetContext64()); | 704 | cpu_core.LoadContext(thread->GetContext64()); |