diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-13 09:42:30 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-21 22:45:02 +0100 |
commit | 778e0f8ec1c1be555217be91a32ac01d32675e23 (patch) | |
tree | 668c3c7b4c31477a45e2e1f9ad550a1af00901ef /src/core/hle/kernel/k_memory_layout.h | |
parent | Merge pull request #6052 from Morph1984/vi-getindirectlayerimagemap (diff) | |
download | yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.gz yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.bz2 yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.lz yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.xz yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.tar.zst yuzu-778e0f8ec1c1be555217be91a32ac01d32675e23.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_memory_layout.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/core/hle/kernel/k_memory_layout.h b/src/core/hle/kernel/k_memory_layout.h index 0821d2d8c..a76ffa02e 100644 --- a/src/core/hle/kernel/k_memory_layout.h +++ b/src/core/hle/kernel/k_memory_layout.h @@ -6,6 +6,7 @@ #include "common/common_types.h" #include "core/device_memory.h" +#include "core/hle/kernel/k_memory_region.h" namespace Kernel { @@ -27,27 +28,6 @@ constexpr bool IsKernelAddress(VAddr address) { return KernelVirtualAddressSpaceBase <= address && address < KernelVirtualAddressSpaceEnd; } -class KMemoryRegion final { - friend class KMemoryLayout; - -public: - constexpr PAddr StartAddress() const { - return start_address; - } - - constexpr PAddr EndAddress() const { - return end_address; - } - -private: - constexpr KMemoryRegion() = default; - constexpr KMemoryRegion(PAddr start_address, PAddr end_address) - : start_address{start_address}, end_address{end_address} {} - - const PAddr start_address{}; - const PAddr end_address{}; -}; - class KMemoryLayout final { public: constexpr const KMemoryRegion& Application() const { |