diff options
| author | 2019-11-28 11:43:17 -0500 | |
|---|---|---|
| committer | 2019-11-28 11:43:17 -0500 | |
| commit | e3ee017e91ef4d713f1af8cb60c5157e40d43f18 (patch) | |
| tree | e0a5b47cac1d548599b8ceba7f71b40746fe6b48 /src/core/core.h | |
| parent | Merge pull request #3171 from lioncash/internal-link (diff) | |
| parent | core/memory; Migrate over SetCurrentPageTable() to the Memory class (diff) | |
| download | yuzu-e3ee017e91ef4d713f1af8cb60c5157e40d43f18.tar.gz yuzu-e3ee017e91ef4d713f1af8cb60c5157e40d43f18.tar.xz yuzu-e3ee017e91ef4d713f1af8cb60c5157e40d43f18.zip | |
Merge pull request #3169 from lioncash/memory
core/memory: Deglobalize memory management code
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index f9b1a2866..91184e433 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -86,6 +86,10 @@ namespace Core::Hardware { | |||
| 86 | class InterruptManager; | 86 | class InterruptManager; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | namespace Memory { | ||
| 90 | class Memory; | ||
| 91 | } | ||
| 92 | |||
| 89 | namespace Core { | 93 | namespace Core { |
| 90 | 94 | ||
| 91 | class ARM_Interface; | 95 | class ARM_Interface; |
| @@ -225,6 +229,12 @@ public: | |||
| 225 | /// Gets a constant reference to the exclusive monitor | 229 | /// Gets a constant reference to the exclusive monitor |
| 226 | const ExclusiveMonitor& Monitor() const; | 230 | const ExclusiveMonitor& Monitor() const; |
| 227 | 231 | ||
| 232 | /// Gets a mutable reference to the system memory instance. | ||
| 233 | Memory::Memory& Memory(); | ||
| 234 | |||
| 235 | /// Gets a constant reference to the system memory instance. | ||
| 236 | const Memory::Memory& Memory() const; | ||
| 237 | |||
| 228 | /// Gets a mutable reference to the GPU interface | 238 | /// Gets a mutable reference to the GPU interface |
| 229 | Tegra::GPU& GPU(); | 239 | Tegra::GPU& GPU(); |
| 230 | 240 | ||