diff options
author | Shannon Zhao | 2018-05-31 15:50:51 +0200 |
---|---|---|
committer | Peter Maydell | 2018-05-31 15:50:51 +0200 |
commit | 34ffacae085914fce54590ea84bae9c6ad95e2a4 (patch) | |
tree | f11a4d5505ee3a5cc4a5955d528c9bbd1d2e415b /hw/intc/arm_gicv3_kvm.c | |
parent | hw/intc/arm_gicv3: Fix APxR<n> register dispatching (diff) | |
download | qemu-34ffacae085914fce54590ea84bae9c6ad95e2a4.tar.gz qemu-34ffacae085914fce54590ea84bae9c6ad95e2a4.tar.xz qemu-34ffacae085914fce54590ea84bae9c6ad95e2a4.zip |
arm_gicv3_kvm: increase clroffset accordingly
It forgot to increase clroffset during the loop. So it only clear the
first 4 bytes.
Fixes: 367b9f527becdd20ddf116e17a3c0c2bbc486920
Cc: qemu-stable@nongnu.org
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 1527047633-12368-1-git-send-email-zhaoshenglong@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc/arm_gicv3_kvm.c')
-rw-r--r-- | hw/intc/arm_gicv3_kvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc/arm_gicv3_kvm.c index ec371772b3..3536795501 100644 --- a/hw/intc/arm_gicv3_kvm.c +++ b/hw/intc/arm_gicv3_kvm.c @@ -243,6 +243,7 @@ static void kvm_dist_putbmp(GICv3State *s, uint32_t offset, if (clroffset != 0) { reg = 0; kvm_gicd_access(s, clroffset, ®, true); + clroffset += 4; } reg = *gic_bmp_ptr32(bmp, irq); kvm_gicd_access(s, offset, ®, true); |