diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-06-08 19:38:57 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2022-06-08 19:38:57 +0100 |
| commit | 5ef3cc563699d9b96e6b1acb15c7c02cf75d8266 (patch) | |
| tree | 2a34f80389ea4b2edccd5bf86d47f1c07b94389a /target/arm/cpu.h | |
| parent | 886902ece71b5e795fea3e052a32f047d2f8fe33 (diff) | |
| download | focaccia-qemu-5ef3cc563699d9b96e6b1acb15c7c02cf75d8266.tar.gz focaccia-qemu-5ef3cc563699d9b96e6b1acb15c7c02cf75d8266.zip | |
target/arm: Rename sve_zcr_len_for_el to sve_vqm1_for_el
This will be used for both Normal and Streaming SVE, and the value
does not necessarily come from ZCR_ELx. While we're at it, emphasize
the units in which the value is returned.
Patch produced by
git grep -l sve_zcr_len_for_el | \
xargs -n1 sed -i 's/sve_zcr_len_for_el/sve_vqm1_for_el/g'
and then adding a function comment.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220607203306.657998-13-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
| -rw-r--r-- | target/arm/cpu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 73f24a5760..e45b5cb7fe 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1132,7 +1132,16 @@ void aarch64_sync_64_to_32(CPUARMState *env); int fp_exception_el(CPUARMState *env, int cur_el); int sve_exception_el(CPUARMState *env, int cur_el); -uint32_t sve_zcr_len_for_el(CPUARMState *env, int el); + +/** + * sve_vqm1_for_el: + * @env: CPUARMState + * @el: exception level + * + * Compute the current SVE vector length for @el, in units of + * Quadwords Minus 1 -- the same scale used for ZCR_ELx.LEN. + */ +uint32_t sve_vqm1_for_el(CPUARMState *env, int el); static inline bool is_a64(CPUARMState *env) { |