diff options
| author | 2023-12-06 14:19:17 +0100 | |
|---|---|---|
| committer | 2023-12-06 14:19:17 +0100 | |
| commit | 8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a (patch) | |
| tree | 265bf3c7970a570479c6a3ac1250549995f0329c /src/core/core.h | |
| parent | Merge pull request #12271 from liamwhite/pretext-fix (diff) | |
| parent | arm: fix context save of vector regs (diff) | |
| download | yuzu-8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a.tar.gz yuzu-8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a.tar.xz yuzu-8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a.zip | |
Merge pull request #12236 from liamwhite/cpu-refactor
core: refactor emulated cpu core activation
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/core.h b/src/core/core.h index df20f26f3..05a222f5c 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -108,7 +108,6 @@ class RenderdocAPI; | |||
| 108 | 108 | ||
| 109 | namespace Core { | 109 | namespace Core { |
| 110 | 110 | ||
| 111 | class ARM_Interface; | ||
| 112 | class CpuManager; | 111 | class CpuManager; |
| 113 | class Debugger; | 112 | class Debugger; |
| 114 | class DeviceMemory; | 113 | class DeviceMemory; |
| @@ -171,15 +170,6 @@ public: | |||
| 171 | /// Check if the core is currently paused. | 170 | /// Check if the core is currently paused. |
| 172 | [[nodiscard]] bool IsPaused() const; | 171 | [[nodiscard]] bool IsPaused() const; |
| 173 | 172 | ||
| 174 | /** | ||
| 175 | * Invalidate the CPU instruction caches | ||
| 176 | * This function should only be used by GDB Stub to support breakpoints, memory updates and | ||
| 177 | * step/continue commands. | ||
| 178 | */ | ||
| 179 | void InvalidateCpuInstructionCaches(); | ||
| 180 | |||
| 181 | void InvalidateCpuInstructionCacheRange(u64 addr, std::size_t size); | ||
| 182 | |||
| 183 | /// Shutdown the main emulated process. | 173 | /// Shutdown the main emulated process. |
| 184 | void ShutdownMainProcess(); | 174 | void ShutdownMainProcess(); |
| 185 | 175 | ||
| @@ -244,24 +234,12 @@ public: | |||
| 244 | /// Gets and resets core performance statistics | 234 | /// Gets and resets core performance statistics |
| 245 | [[nodiscard]] PerfStatsResults GetAndResetPerfStats(); | 235 | [[nodiscard]] PerfStatsResults GetAndResetPerfStats(); |
| 246 | 236 | ||
| 247 | /// Gets an ARM interface to the CPU core that is currently running | ||
| 248 | [[nodiscard]] ARM_Interface& CurrentArmInterface(); | ||
| 249 | |||
| 250 | /// Gets an ARM interface to the CPU core that is currently running | ||
| 251 | [[nodiscard]] const ARM_Interface& CurrentArmInterface() const; | ||
| 252 | |||
| 253 | /// Gets the physical core for the CPU core that is currently running | 237 | /// Gets the physical core for the CPU core that is currently running |
| 254 | [[nodiscard]] Kernel::PhysicalCore& CurrentPhysicalCore(); | 238 | [[nodiscard]] Kernel::PhysicalCore& CurrentPhysicalCore(); |
| 255 | 239 | ||
| 256 | /// Gets the physical core for the CPU core that is currently running | 240 | /// Gets the physical core for the CPU core that is currently running |
| 257 | [[nodiscard]] const Kernel::PhysicalCore& CurrentPhysicalCore() const; | 241 | [[nodiscard]] const Kernel::PhysicalCore& CurrentPhysicalCore() const; |
| 258 | 242 | ||
| 259 | /// Gets a reference to an ARM interface for the CPU core with the specified index | ||
| 260 | [[nodiscard]] ARM_Interface& ArmInterface(std::size_t core_index); | ||
| 261 | |||
| 262 | /// Gets a const reference to an ARM interface from the CPU core with the specified index | ||
| 263 | [[nodiscard]] const ARM_Interface& ArmInterface(std::size_t core_index) const; | ||
| 264 | |||
| 265 | /// Gets a reference to the underlying CPU manager. | 243 | /// Gets a reference to the underlying CPU manager. |
| 266 | [[nodiscard]] CpuManager& GetCpuManager(); | 244 | [[nodiscard]] CpuManager& GetCpuManager(); |
| 267 | 245 | ||