From c0c2e69b59ade9055969c0e358d303e094582c27 Mon Sep 17 00:00:00 2001
From: Stenzek <stenzek@gmail.com>
Date: Sat, 14 Dec 2024 16:43:27 +1000
Subject: [PATCH] CPU/Recompiler: Document ARM32 code size

Yikes, it's huge..
---
 src/core/cpu_recompiler.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/core/cpu_recompiler.h b/src/core/cpu_recompiler.h
index 9ae94962a..db61d5a85 100644
--- a/src/core/cpu_recompiler.h
+++ b/src/core/cpu_recompiler.h
@@ -63,6 +63,8 @@ public:
   static constexpr bool HAS_MEMORY_OPERANDS = false;
 
   // A reasonable "maximum" number of bytes per instruction.
+  // Seems to hover around ~36-48 bytes without PGXP, and ~48-64 bytes with.
+  // Use an upper bound of 64 bytes to be safe.
   static constexpr u32 MAX_NEAR_HOST_BYTES_PER_INSTRUCTION = 64;
   static constexpr u32 MIN_CODE_RESERVE_FOR_BLOCK = 512;