summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-25 18:22:11 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:12 +0200
commit589f9cf108d306e8265ff4856b522cd32fbc121f (patch)
treed9e78acb03901cdbbc3f7649b03048f7cd946f06 /src/core/core.h
parentSVC: Correct CreateThread, StartThread, ExitThread, SleepThread. (diff)
downloadyuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.gz
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.bz2
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.lz
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.xz
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.tar.zst
yuzu-589f9cf108d306e8265ff4856b522cd32fbc121f.zip
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 7f170fc54..9a0dd1075 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -27,6 +27,7 @@ class VfsFilesystem;
namespace Kernel {
class GlobalScheduler;
class KernelCore;
+class PhysicalCore;
class Process;
class Scheduler;
} // namespace Kernel
@@ -211,6 +212,12 @@ public:
/// Gets the scheduler for the CPU core that is currently running
const Kernel::Scheduler& CurrentScheduler() const;
+ /// Gets the physical core for the CPU core that is currently running
+ Kernel::PhysicalCore& CurrentPhysicalCore();
+
+ /// Gets the physical core for the CPU core that is currently running
+ const Kernel::PhysicalCore& CurrentPhysicalCore() const;
+
/// Gets a reference to an ARM interface for the CPU core with the specified index
ARM_Interface& ArmInterface(std::size_t core_index);