From d0c54fe15ec52c00ee27bdb8e759ca4f0cce791a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 13 Dec 2016 19:02:39 -0500 Subject: [PATCH] Jit64Util: Make constants constexpr --- Source/Core/Core/PowerPC/Jit64Common/Jit64Util.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64Common/Jit64Util.h b/Source/Core/Core/PowerPC/Jit64Common/Jit64Util.h index 6c506d1bf2..15269c2d1a 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/Jit64Util.h +++ b/Source/Core/Core/PowerPC/Jit64Common/Jit64Util.h @@ -49,16 +49,16 @@ public: } }; -static const int CODE_SIZE = 1024 * 1024 * 32; +constexpr int CODE_SIZE = 1024 * 1024 * 32; // a bit of a hack; the MMU results in a vast amount more code ending up in the far cache, // mostly exception handling, so give it a whole bunch more space if the MMU is on. -static const int FARCODE_SIZE = 1024 * 1024 * 8; -static const int FARCODE_SIZE_MMU = 1024 * 1024 * 48; +constexpr int FARCODE_SIZE = 1024 * 1024 * 8; +constexpr int FARCODE_SIZE_MMU = 1024 * 1024 * 48; // same for the trampoline code cache, because fastmem results in far more backpatches in MMU mode -static const int TRAMPOLINE_CODE_SIZE = 1024 * 1024 * 8; -static const int TRAMPOLINE_CODE_SIZE_MMU = 1024 * 1024 * 32; +constexpr int TRAMPOLINE_CODE_SIZE = 1024 * 1024 * 8; +constexpr int TRAMPOLINE_CODE_SIZE_MMU = 1024 * 1024 * 32; // Stores information we need to batch-patch a MOV with a call to the slow read/write path after // it faults. There will be 10s of thousands of these structs live, so be wary of making this too