diff options
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/core.h b/src/core/core.h index 01bc0a2c7..52ff90359 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -89,6 +89,10 @@ namespace Core::Hardware { | |||
| 89 | class InterruptManager; | 89 | class InterruptManager; |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | namespace Core::HID { | ||
| 93 | class HIDCore; | ||
| 94 | } | ||
| 95 | |||
| 92 | namespace Core { | 96 | namespace Core { |
| 93 | 97 | ||
| 94 | class ARM_Interface; | 98 | class ARM_Interface; |
| @@ -204,9 +208,6 @@ public: | |||
| 204 | /// Gets an ARM interface to the CPU core that is currently running | 208 | /// Gets an ARM interface to the CPU core that is currently running |
| 205 | [[nodiscard]] const ARM_Interface& CurrentArmInterface() const; | 209 | [[nodiscard]] const ARM_Interface& CurrentArmInterface() const; |
| 206 | 210 | ||
| 207 | /// Gets the index of the currently running CPU core | ||
| 208 | [[nodiscard]] std::size_t CurrentCoreIndex() const; | ||
| 209 | |||
| 210 | /// Gets the physical core for the CPU core that is currently running | 211 | /// Gets the physical core for the CPU core that is currently running |
| 211 | [[nodiscard]] Kernel::PhysicalCore& CurrentPhysicalCore(); | 212 | [[nodiscard]] Kernel::PhysicalCore& CurrentPhysicalCore(); |
| 212 | 213 | ||
| @@ -285,6 +286,12 @@ public: | |||
| 285 | /// Provides a constant reference to the kernel instance. | 286 | /// Provides a constant reference to the kernel instance. |
| 286 | [[nodiscard]] const Kernel::KernelCore& Kernel() const; | 287 | [[nodiscard]] const Kernel::KernelCore& Kernel() const; |
| 287 | 288 | ||
| 289 | /// Gets a mutable reference to the HID interface. | ||
| 290 | [[nodiscard]] HID::HIDCore& HIDCore(); | ||
| 291 | |||
| 292 | /// Gets an immutable reference to the HID interface. | ||
| 293 | [[nodiscard]] const HID::HIDCore& HIDCore() const; | ||
| 294 | |||
| 288 | /// Provides a reference to the internal PerfStats instance. | 295 | /// Provides a reference to the internal PerfStats instance. |
| 289 | [[nodiscard]] Core::PerfStats& GetPerfStats(); | 296 | [[nodiscard]] Core::PerfStats& GetPerfStats(); |
| 290 | 297 | ||