From: Richard Henderson Date: Wed, 2 Apr 2025 19:30:39 +0000 (-0700) Subject: accel/tcg: Simplify L1_MAP_ADDR_SPACE_BITS X-Git-Tag: v10.1.0-rc0~104^2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e8fe327eb67f90822a3e8a8fb6c914dd573f299;p=thirdparty%2Fqemu.git accel/tcg: Simplify L1_MAP_ADDR_SPACE_BITS Stop taking TARGET_PHYS_ADDR_SPACE_BITS into account. Simply allow the entire ram_addr_t space. Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c index 15967678793..13d0376bc74 100644 --- a/accel/tcg/tb-maint.c +++ b/accel/tcg/tb-maint.c @@ -160,11 +160,7 @@ static PageForEachNext foreach_tb_next(PageForEachNext tb, /* * In system mode we want L1_MAP to be based on ram offsets. */ -#if HOST_LONG_BITS < TARGET_PHYS_ADDR_SPACE_BITS -# define L1_MAP_ADDR_SPACE_BITS HOST_LONG_BITS -#else -# define L1_MAP_ADDR_SPACE_BITS TARGET_PHYS_ADDR_SPACE_BITS -#endif +#define L1_MAP_ADDR_SPACE_BITS HOST_LONG_BITS /* Size of the L2 (and L3, etc) page tables. */ #define V_L2_BITS 10