From 399a6af91c31d151444e2593ca43c8d17b168de7 Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Wed, 6 Dec 2023 09:33:32 -0500 Subject: [PATCH] Move some constants to `MemConstants.h` --- src/ARM.h | 4 +--- src/MemConstants.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ARM.h b/src/ARM.h index 65f78ab3..565579a4 100644 --- a/src/ARM.h +++ b/src/ARM.h @@ -24,6 +24,7 @@ #include "types.h" #include "MemRegion.h" +#include "MemConstants.h" #ifdef GDBSTUB_ENABLED #include "debug/GdbStub.h" @@ -42,9 +43,6 @@ enum RWFlags_ForceUser = (1<<21), }; -const u32 ITCMPhysicalSize = 0x8000; -const u32 DTCMPhysicalSize = 0x4000; - struct GDBArgs; class ARMJIT; class GPU; diff --git a/src/MemConstants.h b/src/MemConstants.h index ab80faba..4cf2d36c 100644 --- a/src/MemConstants.h +++ b/src/MemConstants.h @@ -30,6 +30,8 @@ constexpr u32 NWRAMSize = 0x40000; constexpr u32 ARM9BIOSSize = 0x1000; constexpr u32 ARM7BIOSSize = 0x4000; constexpr u32 DSiBIOSSize = 0x10000; +constexpr u32 ITCMPhysicalSize = 0x8000; +constexpr u32 DTCMPhysicalSize = 0x4000; } #endif // MELONDS_MEMCONSTANTS_H \ No newline at end of file