summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-26 10:44:21 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:15 -0400
commit3d9fbb8226e9bf7dce99568f6e616e7361d43c41 (patch)
treebce92b63c7c038c4eda6f6118b8b39aa92a09efb /src/core/cpu_manager.cpp
parentSVC: Correct SendSyncRequest. (diff)
downloadyuzu-3d9fbb8226e9bf7dce99568f6e616e7361d43c41.tar.gz
yuzu-3d9fbb8226e9bf7dce99568f6e616e7361d43c41.tar.xz
yuzu-3d9fbb8226e9bf7dce99568f6e616e7361d43c41.zip
CPU_Manager: Reconfigre guest threads for dynamrmic downsides
Diffstat (limited to 'src/core/cpu_manager.cpp')
-rw-r--r--src/core/cpu_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp
index 6032cb0bf..241971ff3 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -80,9 +80,10 @@ void CpuManager::RunGuestThread() {
80 } 80 }
81 while (true) { 81 while (true) {
82 auto& physical_core = kernel.CurrentPhysicalCore(); 82 auto& physical_core = kernel.CurrentPhysicalCore();
83 if (!physical_core.IsInterrupted()) { 83 while (!physical_core.IsInterrupted()) {
84 physical_core.Run(); 84 physical_core.Run();
85 } 85 }
86 physical_core.ClearExclusive();
86 auto& scheduler = physical_core.Scheduler(); 87 auto& scheduler = physical_core.Scheduler();
87 scheduler.TryDoContextSwitch(); 88 scheduler.TryDoContextSwitch();
88 } 89 }