diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -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 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 { | |||
| 827 | } | 827 | } |
| 828 | 828 | ||
| 829 | Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() { | 829 | Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() { |
| 830 | u32 core_id = impl->GetCurrentHostThreadID(); | 830 | return impl->cores[CurrentPhysicalCoreIndex()]; |
| 831 | ASSERT(core_id < Core::Hardware::NUM_CPU_CORES); | ||
| 832 | return impl->cores[core_id]; | ||
| 833 | } | 831 | } |
| 834 | 832 | ||
| 835 | const Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() const { | 833 | const Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() const { |
| 836 | u32 core_id = impl->GetCurrentHostThreadID(); | 834 | return impl->cores[CurrentPhysicalCoreIndex()]; |
| 837 | ASSERT(core_id < Core::Hardware::NUM_CPU_CORES); | ||
| 838 | return impl->cores[core_id]; | ||
| 839 | } | 835 | } |
| 840 | 836 | ||
| 841 | Kernel::KScheduler* KernelCore::CurrentScheduler() { | 837 | Kernel::KScheduler* KernelCore::CurrentScheduler() { |