target/arm: Introduce ARMCPU.sme_max_vq
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20250704142112.1018902-25-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7afb9855fc
commit
c48d0471be
2 changed files with 2 additions and 0 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue