Re: [PATCH 2/2] target/arm: Add sve-default-vector-length cpu property

2021-07-23 Thread Richard Henderson
On 7/15/21 11:14 PM, Peter Maydell wrote: +#ifdef CONFIG_USER_ONLY +/* Mirror linux /proc/sys/abi/sve_default_vector_length. */ /proc/sys/abi/sve_default_vector_length wants a vector length in bytes, and it looks like we take a length in bits. I assume that's to match other places where the use

Re: [PATCH 2/2] target/arm: Add sve-default-vector-length cpu property

2021-07-16 Thread Peter Maydell
On Wed, 14 Jul 2021 at 19:06, Richard Henderson wrote: > > Mirror the behavour of /proc/sys/abi/sve_default_vector_length > under the real linux kernel. We have no way of passing along > a real default across exec like the kernel can, but this is a > decent way of adjusting the startup vector len

[PATCH 2/2] target/arm: Add sve-default-vector-length cpu property

2021-07-14 Thread Richard Henderson
Mirror the behavour of /proc/sys/abi/sve_default_vector_length under the real linux kernel. We have no way of passing along a real default across exec like the kernel can, but this is a decent way of adjusting the startup vector length of a process. Resolves: https://gitlab.com/qemu-project/qemu/