summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2024-01-07 07:56:51 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commit4b963ca8a522ec8eb7198209719925e4077246fe (patch)
tree313560aeeeec3e226b7a668c8f2258028258fc6c
parentCore: Make sure GPU Dirty Managers ae shared by all processes. (diff)
downloadyuzu-4b963ca8a522ec8eb7198209719925e4077246fe.tar
yuzu-4b963ca8a522ec8eb7198209719925e4077246fe.tar.gz
yuzu-4b963ca8a522ec8eb7198209719925e4077246fe.tar.bz2
yuzu-4b963ca8a522ec8eb7198209719925e4077246fe.tar.lz
yuzu-4b963ca8a522ec8eb7198209719925e4077246fe.tar.xz
yuzu-4b963ca8a522ec8eb7198209719925e4077246fe.tar.zst
yuzu-4b963ca8a522ec8eb7198209719925e4077246fe.zip
-rw-r--r--src/core/guest_memory.h7
-rw-r--r--src/core/memory.h6
2 files changed, 7 insertions, 6 deletions
diff --git a/src/core/guest_memory.h b/src/core/guest_memory.h
index 8030df73a..7ee18c126 100644
--- a/src/core/guest_memory.h
+++ b/src/core/guest_memory.h
@@ -9,8 +9,8 @@
#include <span>
#include <vector>
+#include "common/assert.h"
#include "common/scratch_buffer.h"
-#include "core/memory.h"
namespace Core::Memory {
@@ -211,9 +211,4 @@ public:
};
} // namespace
-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
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