CPU_TLB_DYN_MAX_BITS depends on TARGET_VIRT_ADDR_SPACE_BITS on 64-bit hosts, and is not yet target independent.
Signed-off-by: Anton Johansson <a...@rev.ng> --- accel/tcg/cputlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 967d5da6d4..42be5b6289 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -172,7 +172,7 @@ static void tlb_mmu_resize_locked(CPUTLBDesc *desc, CPUTLBDescFast *fast, rate = desc->window_max_entries * 100 / old_size; if (rate > 70) { - new_size = MIN(old_size << 1, 1 << CPU_TLB_DYN_MAX_BITS); + new_size = MIN(old_size << 1, 1 << tcg_ctx->tlb_dyn_max_bits); } else if (rate < 30 && window_expired) { size_t ceil = pow2ceil(desc->window_max_entries); size_t expected_rate = desc->window_max_entries * 100 / ceil; -- 2.43.0