diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 1986cf65c..0cf3c8f70 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -135,7 +135,8 @@ struct KernelCore::Impl { | |||
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | void InitializePhysicalCores(KernelCore& kernel) { | 137 | void InitializePhysicalCores(KernelCore& kernel) { |
| 138 | exclusive_monitor = Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount()); | 138 | exclusive_monitor = |
| 139 | Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount()); | ||
| 139 | for (std::size_t i = 0; i < global_scheduler.CpuCoresCount(); i++) { | 140 | for (std::size_t i = 0; i < global_scheduler.CpuCoresCount(); i++) { |
| 140 | cores.emplace_back(system, kernel, i, *exclusive_monitor); | 141 | cores.emplace_back(system, kernel, i, *exclusive_monitor); |
| 141 | } | 142 | } |
| @@ -284,7 +285,7 @@ void KernelCore::InvalidateAllInstructionCaches() { | |||
| 284 | } | 285 | } |
| 285 | 286 | ||
| 286 | void KernelCore::PrepareReschedule(std::size_t id) { | 287 | void KernelCore::PrepareReschedule(std::size_t id) { |
| 287 | if (id >= 0 && id < impl->global_scheduler.CpuCoresCount()) { | 288 | if (id < impl->global_scheduler.CpuCoresCount()) { |
| 288 | impl->cores[id].Stop(); | 289 | impl->cores[id].Stop(); |
| 289 | } | 290 | } |
| 290 | } | 291 | } |