From: Richard Henderson Date: Thu, 23 Oct 2025 12:12:50 +0000 (+0100) Subject: target/arm: Drop trivial assert vs attrindx X-Git-Tag: v10.2.0-rc1~46^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56ff19a5c26d7254619684e14c5fe1b773a46b68;p=thirdparty%2Fqemu.git target/arm: Drop trivial assert vs attrindx We just extracted 3 bits; the <= 7 test is trivially true. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20251014195017.421681-5-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/ptw.c b/target/arm/ptw.c index d4386ede73..54c45fc9fe 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -2320,7 +2320,6 @@ static bool get_phys_addr_lpae(CPUARMState *env, S1Translate *ptw, /* Index into MAIR registers for cache attributes */ attrindx = extract32(attrs, 2, 3); mair = env->cp15.mair_el[regime_el(mmu_idx)]; - assert(attrindx <= 7); result->cacheattrs.is_s2_format = false; result->cacheattrs.attrs = extract64(mair, attrindx * 8, 8);