Re: [PATCH v2 1/3] target/arm: Correctly bound length in sve_zcr_get_valid_len

2021-07-26 Thread Peter Maydell
On Fri, 23 Jul 2021 at 21:36, Richard Henderson wrote: > > 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.

[PATCH v2 1/3] target/arm: Correctly bound length in sve_zcr_get_valid_len

2021-07-23 Thread 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 lo