From: Richard Henderson Date: Wed, 7 Jan 2026 00:46:55 +0000 (+1100) Subject: tcg: Drop TCG_TARGET_REG_BITS test in region.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffef4d5dd25b88de99ec0b499a4e6bc8683baceb;p=thirdparty%2Fqemu.git tcg: Drop TCG_TARGET_REG_BITS test in region.c Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- diff --git a/tcg/region.c b/tcg/region.c index 2181267e48..5d4be1453b 100644 --- a/tcg/region.c +++ b/tcg/region.c @@ -464,17 +464,6 @@ static size_t tcg_n_regions(size_t tb_size, unsigned max_threads) */ #define MIN_CODE_GEN_BUFFER_SIZE (1 * MiB) -#if TCG_TARGET_REG_BITS == 32 -#define DEFAULT_CODE_GEN_BUFFER_SIZE_1 (32 * MiB) -#ifdef CONFIG_USER_ONLY -/* - * For user mode on smaller 32 bit systems we may run into trouble - * allocating big chunks of data in the right place. On these systems - * we utilise a static code generation buffer directly in the binary. - */ -#define USE_STATIC_CODE_GEN_BUFFER -#endif -#else /* TCG_TARGET_REG_BITS == 64 */ #ifdef CONFIG_USER_ONLY /* * As user-mode emulation typically means running multiple instances @@ -490,7 +479,6 @@ static size_t tcg_n_regions(size_t tb_size, unsigned max_threads) */ #define DEFAULT_CODE_GEN_BUFFER_SIZE_1 (1 * GiB) #endif -#endif #define DEFAULT_CODE_GEN_BUFFER_SIZE \ (DEFAULT_CODE_GEN_BUFFER_SIZE_1 < MAX_CODE_GEN_BUFFER_SIZE \