summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-11-26 12:33:20 -0500
committerGravatar Lioncash2019-11-26 21:53:34 -0500
commit4c2ed2706e3579ec1304907dad0d45673768e1fc (patch)
tree89f72c13ad6ab374a4e2d2d475b1e03320de7066 /src/core/core.h
parentMerge pull request #3143 from ReinUsesLisp/indexing-bug (diff)
downloadyuzu-4c2ed2706e3579ec1304907dad0d45673768e1fc.tar.gz
yuzu-4c2ed2706e3579ec1304907dad0d45673768e1fc.tar.xz
yuzu-4c2ed2706e3579ec1304907dad0d45673768e1fc.zip
core/memory: Introduce skeleton of Memory class
Currently, the main memory management code is one of the remaining places where we have global state. The next series of changes will aim to rectify this. This change simply introduces the main skeleton of the class that will contain all the necessary state.
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h10
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 {
86class InterruptManager; 86class InterruptManager;
87} 87}
88 88
89namespace Memory {
90class Memory;
91}
92
89namespace Core { 93namespace Core {
90 94
91class ARM_Interface; 95class 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