hw/intc/arm_gicv3_cpuif: Don't let BPR be set below its minimum
commit8193d4617cfdaec6e95c2087d9a13197dc261ef0
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:47 +0000 (2 11:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:47 +0000 (2 11:51 +0100)
treec580c584fc3a0b735d8491daa52ef9df57722c85
parentf5dc1b7767144dd44bdda99669e2b5bb8709a62b
hw/intc/arm_gicv3_cpuif: Don't let BPR be set below its minimum

icc_bpr_write() was not enforcing that writing a value below the
minimum for the BPR should behave as if the BPR was set to the
minimum value. This doesn't make a difference for the secure
BPRs (since we define the minimum for the QEMU implementation
as zero) but did mean we were allowing the NS BPR1 to be set to
0 when 1 should be the lowest value.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1493226792-3237-3-git-send-email-peter.maydell@linaro.org
hw/intc/arm_gicv3_cpuif.c