Re: [PATCH v2 3/6] target/arm: Adjust and validate mtedesc sizem1

2024-02-06 Thread Peter Maydell
On Tue, 6 Feb 2024 at 03:07, Richard Henderson wrote: > > When we added SVE_MTEDESC_SHIFT, we effectively limited the > maximum size of MTEDESC. Adjust SIZEM1 to consume the remaining > bits (32 - 10 - 5 - 12 == 5). Assert that the data to be stored > fits within the field (expecting 8 * 4 - 1

[PATCH v2 3/6] target/arm: Adjust and validate mtedesc sizem1

2024-02-05 Thread Richard Henderson
When we added SVE_MTEDESC_SHIFT, we effectively limited the maximum size of MTEDESC. Adjust SIZEM1 to consume the remaining bits (32 - 10 - 5 - 12 == 5). Assert that the data to be stored fits within the field (expecting 8 * 4 - 1 == 31, exact fit). Signed-off-by: Richard Henderson ---