Explorar el Código

hle: kernel: k_scheduler: Fix for single core mode.

bunnei hace 5 años
padre
commit
f6b10fad63
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/core/hle/kernel/k_scheduler.cpp

+ 2 - 1
src/core/hle/kernel/k_scheduler.cpp

@@ -38,7 +38,8 @@ void KScheduler::RescheduleCores(KernelCore& kernel, u64 cores_pending_reschedul
     bool must_context_switch{};
     bool must_context_switch{};
     if (scheduler) {
     if (scheduler) {
         current_core = scheduler->core_id;
         current_core = scheduler->core_id;
-        must_context_switch = true;
+        // TODO(bunnei): Should be set to true when we deprecate single core
+        must_context_switch = !kernel.IsPhantomModeForSingleCore();
     }
     }
 
 
     while (cores_pending_reschedule != 0) {
     while (cores_pending_reschedule != 0) {