early-access version 1973

This commit is contained in:
pineappleEA
2021-08-07 16:05:45 +02:00
parent 957c2233d1
commit f487c5cecc
24 changed files with 139 additions and 220 deletions

View File

@@ -494,6 +494,12 @@ const ARM_Interface& System::CurrentArmInterface() const {
return impl->kernel.CurrentPhysicalCore().ArmInterface();
}
std::size_t System::CurrentCoreIndex() const {
std::size_t core = impl->kernel.GetCurrentHostThreadID();
ASSERT(core < Core::Hardware::NUM_CPU_CORES);
return core;
}
Kernel::PhysicalCore& System::CurrentPhysicalCore() {
return impl->kernel.CurrentPhysicalCore();
}