summaryrefslogtreecommitdiffstats
path: root/src/core/device_memory.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-17 06:59:08 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:36 +0200
commit8bbe74a8dc62cd3933fd08237e707b0059fe8a78 (patch)
tree61b6af4968dcb52ba84aebdffd3cff0f3c5864ce /src/core/device_memory.h
parentcore: device_memory: Remove incorrect usage of constexpr. (diff)
downloadyuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar
yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.gz
yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.bz2
yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.lz
yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.xz
yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.tar.zst
yuzu-8bbe74a8dc62cd3933fd08237e707b0059fe8a78.zip
Diffstat (limited to 'src/core/device_memory.h')
-rw-r--r--src/core/device_memory.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/core/device_memory.h b/src/core/device_memory.h
index ff66e202d..9efa088d0 100644
--- a/src/core/device_memory.h
+++ b/src/core/device_memory.h
@@ -13,13 +13,15 @@ namespace Core {
class System;
namespace DramMemoryMap {
-constexpr u64 Base = 0x80000000ULL;
-constexpr u64 Size = 0x100000000ULL;
-constexpr u64 End = Base + Size;
-constexpr u64 KernelReserveBase = Base + 0x60000;
-constexpr u64 SlabHeapBase = KernelReserveBase + 0x85000;
-constexpr u64 SlapHeapSize = 0xa21000;
-constexpr u64 SlabHeapEnd = SlabHeapBase + SlapHeapSize;
+enum : u64 {
+ Base = 0x80000000ULL,
+ Size = 0x100000000ULL,
+ End = Base + Size,
+ KernelReserveBase = Base + 0x60000,
+ SlabHeapBase = KernelReserveBase + 0x85000,
+ SlapHeapSize = 0xa21000,
+ SlabHeapEnd = SlabHeapBase + SlapHeapSize,
+};
}; // namespace DramMemoryMap
class DeviceMemory : NonCopyable {