diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 08:20:07 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-12-07 01:39:16 +0100 |
commit | 178584e56f742274ca6392ce3d87ff2ca08de731 (patch) | |
tree | 5c9e8b6a7d9bb78d51d1f4d236824737e2cf900f /src | |
parent | core: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess. (diff) | |
download | yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.tar yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.tar.gz yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.tar.bz2 yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.tar.lz yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.tar.xz yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.tar.zst yuzu-178584e56f742274ca6392ce3d87ff2ca08de731.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 275fee0d8..288488644 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -848,15 +848,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() { |