Re: [RFC PATCH] target/arm: clamp value to account for RES0 fields

2025-06-17 Thread Richard Henderson
On 6/16/25 13:10, Alex Bennée wrote: If the user writes a large value to the register but with the bottom bits unset we could end up with something illegal. By clamping ahead of the check we at least assure we won't assert(bpr > 0) later in the GIC interface code. Signed-off-by: Alex Bennée ---

[RFC PATCH] target/arm: clamp value to account for RES0 fields

2025-06-16 Thread Alex Bennée
If the user writes a large value to the register but with the bottom bits unset we could end up with something illegal. By clamping ahead of the check we at least assure we won't assert(bpr > 0) later in the GIC interface code. Signed-off-by: Alex Bennée --- hw/intc/arm_gicv3_cpuif.c | 5 -