[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/3] target/arm: Correctly bound length in sve_zcr_get_val
Re: [PATCH v2 1/3] target/arm: Correctly bound length in sve_zcr_get_valid_len
Mon, 26 Jul 2021 11:57:05 +0100
On Fri, 23 Jul 2021 at 21:36, Richard Henderson
> Currently, our only caller is sve_zcr_len_for_el, which has
> already masked the length extracted from ZCR_ELx, so the
> masking done here is a nop. But we will shortly have uses
> from other locations, where the length will be unmasked.
> Saturate the length to ARM_MAX_VQ instead of truncating to
> the low 4 bits.
> Signed-off-by: Richard Henderson <firstname.lastname@example.org>
Reviewed-by: Peter Maydell <email@example.com>