diff options
Diffstat (limited to 'src/core/cpu_manager.cpp')
| -rw-r--r-- | src/core/cpu_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index 95842aad1..9e2e6d49f 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp | |||
| @@ -118,9 +118,11 @@ void CpuManager::MultiCoreRunGuestLoop() { | |||
| 118 | host_context.reset(); | 118 | host_context.reset(); |
| 119 | while (true) { | 119 | while (true) { |
| 120 | auto& physical_core = kernel.CurrentPhysicalCore(); | 120 | auto& physical_core = kernel.CurrentPhysicalCore(); |
| 121 | system.EnterDynarmicProfile(); | ||
| 121 | while (!physical_core.IsInterrupted()) { | 122 | while (!physical_core.IsInterrupted()) { |
| 122 | physical_core.Run(); | 123 | physical_core.Run(); |
| 123 | } | 124 | } |
| 125 | system.ExitDynarmicProfile(); | ||
| 124 | physical_core.ClearExclusive(); | 126 | physical_core.ClearExclusive(); |
| 125 | auto& scheduler = physical_core.Scheduler(); | 127 | auto& scheduler = physical_core.Scheduler(); |
| 126 | scheduler.TryDoContextSwitch(); | 128 | scheduler.TryDoContextSwitch(); |
| @@ -216,6 +218,7 @@ void CpuManager::SingleCoreRunGuestLoop() { | |||
| 216 | host_context.reset(); | 218 | host_context.reset(); |
| 217 | while (true) { | 219 | while (true) { |
| 218 | auto& physical_core = kernel.CurrentPhysicalCore(); | 220 | auto& physical_core = kernel.CurrentPhysicalCore(); |
| 221 | system.EnterDynarmicProfile(); | ||
| 219 | while (!physical_core.IsInterrupted()) { | 222 | while (!physical_core.IsInterrupted()) { |
| 220 | physical_core.Run(); | 223 | physical_core.Run(); |
| 221 | preemption_count++; | 224 | preemption_count++; |
| @@ -224,6 +227,7 @@ void CpuManager::SingleCoreRunGuestLoop() { | |||
| 224 | } | 227 | } |
| 225 | } | 228 | } |
| 226 | physical_core.ClearExclusive(); | 229 | physical_core.ClearExclusive(); |
| 230 | system.ExitDynarmicProfile(); | ||
| 227 | PreemptSingleCore(); | 231 | PreemptSingleCore(); |
| 228 | auto& scheduler = kernel.Scheduler(current_core); | 232 | auto& scheduler = kernel.Scheduler(current_core); |
| 229 | scheduler.TryDoContextSwitch(); | 233 | scheduler.TryDoContextSwitch(); |