summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-07 08:20:07 +0200
committerbunnei <bunneidev@gmail.com>2021-08-07 21:18:47 +0200
commit2dfb07388ac4755a2b43944cc9a3edfa531a2fee (patch)
treea5241bdd17d684009e8f42527a02d6ec110558c0 /src
parentcore: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess. (diff)
downloadyuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.tar
yuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.tar.gz
yuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.tar.bz2
yuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.tar.lz
yuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.tar.xz
yuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.tar.zst
yuzu-2dfb07388ac4755a2b43944cc9a3edfa531a2fee.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 6bfb55f71..2a984b913 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -827,15 +827,11 @@ size_t KernelCore::CurrentPhysicalCoreIndex() const {
}
Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() {
- u32 core_id = impl->GetCurrentHostThreadID();
- ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
- return impl->cores[core_id];
+ return impl->cores[CurrentPhysicalCoreIndex()];
}
const Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() const {
- u32 core_id = impl->GetCurrentHostThreadID();
- ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
- return impl->cores[core_id];
+ return impl->cores[CurrentPhysicalCoreIndex()];
}
Kernel::KScheduler* KernelCore::CurrentScheduler() {