OSDN Git Service

hw/intc/arm_gic: Fix the NS view of C_BPR when C_CTRL.CBPR is 1
authorLuc MICHEL <luc.michel@git.antfield.fr>
Thu, 25 Jan 2018 11:45:30 +0000 (11:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Jan 2018 11:45:30 +0000 (11:45 +0000)
commit421a3c224e2c4c5d2dfd9309d7357f3369ed30e0
treeb147668c555cee7329363a38823578945e29e7ad
parentfc05a6f22a15503b1e95be640a62e44a06c95d25
hw/intc/arm_gic: Fix the NS view of C_BPR when C_CTRL.CBPR is 1

When C_CTRL.CBPR is 1, the Non-Secure view of C_BPR is altered:
  - A Non-Secure read of C_BPR should return the BPR value plus 1,
  saturated to 7,
  - A Non-Secure write should be ignored.

Signed-off-by: Luc MICHEL <luc.michel@git.antfield.fr>
Message-id: 20180119145756.7629-6-luc.michel@greensocs.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: fixed comment typo]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gic.c