diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-19 15:11:18 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-15 17:55:12 +0200 |
commit | 82218c925af8bcbaa05ae9f39af2d2393de7681f (patch) | |
tree | e38d90c4838679ae59d58f51fff2904b16b1a155 /src/core/core.cpp | |
parent | Correct PrepareReschedule (diff) | |
download | yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.gz yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.bz2 yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.lz yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.xz yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.zst yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 4a95630bd..d79045eea 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -404,9 +404,10 @@ void System::PrepareReschedule() { CurrentCpuCore().PrepareReschedule(); } -void System::PrepareReschedule(s32 core_index) { - if (core_index >= 0) +void System::PrepareReschedule(const u32 core_index) { + if (core_index < GlobalScheduler().CpuCoresCount()) { CpuCore(core_index).PrepareReschedule(); + } } PerfStatsResults System::GetAndResetPerfStats() { |