With this, TARGET_PAGE_BITS_MIN no longer exists outside of page-vary-target.c, as that's the only place that needs the information.
Based-on: 20250318213209.2579218-1-richard.hender...@linaro.org ("[PATCH v2 00/42] accel/tcg, codebase: Build once patches") Based-on: 20250325224403.4011975-1-richard.hender...@linaro.org ("[PATCH v2 00/11] target/avr: Increase page size") Based-on: 20250328175526.368121-1-richard.hender...@linaro.org ("[PATCH 0/3] target/mips: Revert TARGET_PAGE_BITS_VARY and bug fixes") Which is a lot, so for avoidance of doubt: https://gitlab.com/rth7680/qemu/-/commit/c8b593f1a907794b5767274cb3f5c70985638397 r~ Richard Henderson (9): include/exec: Move tb_{,set_}page_addr[01] to translation-block.h accel/tcg: Move get_page_addr_code* declarations accel/tcg: Remove page_protect accel/tcg: Remove cpu-all.h, exec-all.h from tb-internal.h accel/tcg: Build translator.c twice accel/tcg: Split out tlb-bounds.h include/exec: Redefine tlb-flags with absolute values page-vary: Move and rename qemu_target_page_bits_min page-vary: Restrict scope of TARGET_PAGE_BITS_MIN accel/tcg/internal-common.h | 34 +++++++++++++ accel/tcg/tb-internal.h | 38 +-------------- accel/tcg/tlb-bounds.h | 32 ++++++++++++ include/exec/cpu-defs.h | 10 +--- include/exec/exec-all.h | 83 -------------------------------- include/exec/page-vary.h | 9 ++++ include/exec/poison.h | 1 + include/exec/target_page.h | 2 - include/exec/tlb-flags.h | 68 ++++++++++++-------------- include/exec/translation-block.h | 50 +++++++++++++++++++ include/qemu/osdep.h | 6 +++ include/user/page-protection.h | 1 - target/alpha/cpu-param.h | 1 - target/arm/cpu-param.h | 3 +- target/ppc/cpu-param.h | 1 - accel/tcg/cputlb.c | 2 + accel/tcg/tb-maint.c | 1 + accel/tcg/translate-all.c | 1 + accel/tcg/translator.c | 15 +++--- accel/tcg/user-exec.c | 2 +- migration/savevm.c | 6 +-- page-target.c | 5 -- page-vary-target.c | 48 ++++++++++++++++-- accel/tcg/meson.build | 2 +- 24 files changed, 230 insertions(+), 191 deletions(-) create mode 100644 accel/tcg/tlb-bounds.h -- 2.43.0