mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 16:40:06 +00:00
core: hle: kernel: Use CurrentPhysicalCoreIndex as appropriate.
This commit is contained in:
parent
629f9274ac
commit
178584e56f
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user