From: Richard Henderson Date: Fri, 4 Jul 2025 14:19:47 +0000 (-0600) Subject: target/arm: Introduce ARMCPU.sme_max_vq X-Git-Tag: v10.1.0-rc0~29^2~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c48d0471beb0cb197efda0b2be3fa75b4628a673;p=thirdparty%2Fqemu.git target/arm: Introduce ARMCPU.sme_max_vq Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20250704142112.1018902-25-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 39a9234ff28..c8cf0ab417b 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1136,6 +1136,7 @@ struct ArchCPU { /* Used to set the maximum vector length the cpu will support. */ uint32_t sve_max_vq; + uint32_t sme_max_vq; #ifdef CONFIG_USER_ONLY /* Used to set the default vector length at process start. */ diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 77e7c4a6a52..bd33d6cc6ea 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -363,6 +363,7 @@ void arm_cpu_sme_finalize(ARMCPU *cpu, Error **errp) } cpu->sme_vq.map = vq_map; + cpu->sme_max_vq = 32 - clz32(vq_map); } static bool cpu_arm_get_sme(Object *obj, Error **errp)