diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-26 21:14:18 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-01-27 14:54:11 +0100 |
commit | 2d1984c20c75e03ec79eeb3806b12efa1679b977 (patch) | |
tree | 79a457c2fb0cabd810eac92f3cb245d344ed9c3b /src/core/hle/kernel/kernel.cpp | |
parent | System: Correct PrepareReschedule. (diff) | |
download | yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.gz yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.bz2 yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.lz yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.xz yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.zst yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.zip |
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 { } void InitializePhysicalCores(KernelCore& kernel) { - exclusive_monitor = Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount()); + exclusive_monitor = + Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount()); for (std::size_t i = 0; i < global_scheduler.CpuCoresCount(); i++) { cores.emplace_back(system, kernel, i, *exclusive_monitor); } @@ -284,7 +285,7 @@ void KernelCore::InvalidateAllInstructionCaches() { } void KernelCore::PrepareReschedule(std::size_t id) { - if (id >= 0 && id < impl->global_scheduler.CpuCoresCount()) { + if (id < impl->global_scheduler.CpuCoresCount()) { impl->cores[id].Stop(); } } |