aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/physical_memory.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-18 03:03:48 -0500
committerGitHub <noreply@github.com>2020-01-18 03:03:48 -0500
commit278264b9e584d197ef4fcc15051190149e243a95 (patch)
tree9ac5f757fb4dbb26272c2b169e0a33bc6164d4e9 /src/core/hle/kernel/physical_memory.h
parent9bf4850f7492bf9370acedb6135a79b944eb942f (diff)
parent56672b8c9809d8f5585d208f5b85549bc3fe2a0e (diff)
Merge pull request #3314 from degasus/physical_mem
core/hle/kernel: Simplify PhysicalMemory usages.
Diffstat (limited to 'src/core/hle/kernel/physical_memory.h')
-rw-r--r--src/core/hle/kernel/physical_memory.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/physical_memory.h b/src/core/hle/kernel/physical_memory.h
index 090565310..b689e8e8b 100644
--- a/src/core/hle/kernel/physical_memory.h
+++ b/src/core/hle/kernel/physical_memory.h
@@ -14,6 +14,9 @@ namespace Kernel {
// - Second to ensure all host backing memory used is aligned to 256 bytes due
// to strict alignment restrictions on GPU memory.
-using PhysicalMemory = std::vector<u8, Common::AlignmentAllocator<u8, 256>>;
+using PhysicalMemoryVector = std::vector<u8, Common::AlignmentAllocator<u8, 256>>;
+class PhysicalMemory final : public PhysicalMemoryVector {
+ using PhysicalMemoryVector::PhysicalMemoryVector;
+};
} // namespace Kernel