diff options
| author | 2021-08-25 21:00:18 -0700 | |
|---|---|---|
| committer | 2021-08-25 21:00:18 -0700 | |
| commit | 98c2f0e57651575c17ac6d2b5db04055abf228ee (patch) | |
| tree | d6f7d065cd8e2f00c85b9749076ef303a705c864 /src/core/core.cpp | |
| parent | Merge pull request #6919 from ameerj/vk-int8-capability (diff) | |
| parent | Revert "kernel: Various improvements to scheduler" (diff) | |
| download | yuzu-98c2f0e57651575c17ac6d2b5db04055abf228ee.tar.gz yuzu-98c2f0e57651575c17ac6d2b5db04055abf228ee.tar.xz yuzu-98c2f0e57651575c17ac6d2b5db04055abf228ee.zip | |
Merge pull request #6922 from yuzu-emu/revert-6832-scheduler-improvements
Revert "kernel: Various improvements to scheduler"
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 5893a86bf..ba4629993 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -507,6 +507,12 @@ const ARM_Interface& System::CurrentArmInterface() const { | |||
| 507 | return impl->kernel.CurrentPhysicalCore().ArmInterface(); | 507 | return impl->kernel.CurrentPhysicalCore().ArmInterface(); |
| 508 | } | 508 | } |
| 509 | 509 | ||
| 510 | std::size_t System::CurrentCoreIndex() const { | ||
| 511 | std::size_t core = impl->kernel.GetCurrentHostThreadID(); | ||
| 512 | ASSERT(core < Core::Hardware::NUM_CPU_CORES); | ||
| 513 | return core; | ||
| 514 | } | ||
| 515 | |||
| 510 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { | 516 | Kernel::PhysicalCore& System::CurrentPhysicalCore() { |
| 511 | return impl->kernel.CurrentPhysicalCore(); | 517 | return impl->kernel.CurrentPhysicalCore(); |
| 512 | } | 518 | } |