early-access version 2259

This commit is contained in:
pineappleEA
2021-11-30 21:23:11 +01:00
parent 3c5094eec0
commit fdaddafa9e
32 changed files with 665 additions and 763 deletions

View File

@@ -521,6 +521,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();
}