From 7c43f5c13e5656f6b96bcd572390a89914d6c0f5 Mon Sep 17 00:00:00 2001
From: Connor McLaughlin <stenzek@gmail.com>
Date: Wed, 26 May 2021 02:48:46 +1000
Subject: [PATCH] CPU/CodeCache: Fix compilation on 32-bit x86

---
 src/core/cpu_code_cache.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/core/cpu_code_cache.cpp b/src/core/cpu_code_cache.cpp
index e0e4892fb..619d11866 100644
--- a/src/core/cpu_code_cache.cpp
+++ b/src/core/cpu_code_cache.cpp
@@ -16,7 +16,11 @@ Log_SetChannel(CPU::CodeCache);
 
 namespace CPU::CodeCache {
 
-constexpr bool USE_BLOCK_LINKING = true;
+static constexpr bool USE_BLOCK_LINKING = true;
+
+// Fall blocks back to interpreter if we recompile more than 20 times within 100 frames.
+static constexpr u32 RECOMPILE_FRAMES_TO_FALL_BACK_TO_INTERPRETER = 100;
+static constexpr u32 RECOMPILE_COUNT_TO_FALL_BACK_TO_INTERPRETER = 20;
 
 #ifdef WITH_RECOMPILER
 
@@ -35,10 +39,6 @@ static constexpr u32 RECOMPILER_FAR_CODE_CACHE_SIZE = 16 * 1024 * 1024;
 #endif
 static constexpr u32 CODE_WRITE_FAULT_THRESHOLD_FOR_SLOWMEM = 10;
 
-// Fall blocks back to interpreter if we recompile more than 20 times within 100 frames.
-static constexpr u32 RECOMPILE_FRAMES_TO_FALL_BACK_TO_INTERPRETER = 100;
-static constexpr u32 RECOMPILE_COUNT_TO_FALL_BACK_TO_INTERPRETER = 20;
-
 #ifdef USE_STATIC_CODE_BUFFER
 static constexpr u32 RECOMPILER_GUARD_SIZE = 4096;
 alignas(Recompiler::CODE_STORAGE_ALIGNMENT) static u8