summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2024-01-07 07:56:51 +0100
committerLiam <byteslice@airmail.cc>2024-01-18 21:12:30 -0500
commit4b963ca8a522ec8eb7198209719925e4077246fe (patch)
tree313560aeeeec3e226b7a668c8f2258028258fc6c /src/core/memory.h
parent648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37 (diff)
Core: Invert guest memory depandancy
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 552fd585f..f7e6b297f 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -12,6 +12,7 @@
#include "common/scratch_buffer.h"
#include "common/typed_address.h"
+#include "core/guest_memory.h"
#include "core/hle/result.h"
namespace Common {
@@ -498,4 +499,9 @@ private:
std::unique_ptr<Impl> impl;
};
+template <typename T, GuestMemoryFlags FLAGS>
+using CpuGuestMemory = GuestMemory<Core::Memory::Memory, T, FLAGS>;
+template <typename T, GuestMemoryFlags FLAGS>
+using CpuGuestMemoryScoped = GuestMemoryScoped<Core::Memory::Memory, T, FLAGS>;
+
} // namespace Core::Memory