hw/intc/arm_gicv3: Fix write of ICH_VMCR_EL2.{VBPR0, VBPR1}
commit8b7fbd6c36b868ad16cb7065dbba93ac342479af
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 23 May 2019 13:47:43 +0000 (23 14:47 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 23 May 2019 13:47:43 +0000 (23 14:47 +0100)
tree70e3c4bd334d321dd9a900e16ded2d12dca528ac
parent12ec8bd51e81a025a444585359f019f49b57a702
hw/intc/arm_gicv3: Fix write of ICH_VMCR_EL2.{VBPR0, VBPR1}

In ich_vmcr_write() we enforce "writes of BPR fields to less than
their minimum sets them to the minimum" by doing a "read vbpr and
write it back" operation.  A typo here meant that we weren't handling
writes to these fields correctly, because we were reading from VBPR0
but writing to VBPR1.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190520162809.2677-4-peter.maydell@linaro.org
hw/intc/arm_gicv3_cpuif.c