summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.cpp
diff options
context:
space:
mode:
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 }