yuzu-emu
/
yuzu
Archived
1
0
Fork 0

core: hle: kernel: Use CurrentPhysicalCoreIndex as appropriate.

This commit is contained in:
bunnei 2021-08-06 23:20:07 -07:00
parent d1c502720d
commit 2dfb07388a
1 changed files with 2 additions and 6 deletions

View File

@ -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() {