Skip to content

Commit

Permalink
arm_gicv3_kvm: increase clroffset accordingly
Browse files Browse the repository at this point in the history
It forgot to increase clroffset during the loop. So it only clear the
first 4 bytes.

Fixes: 367b9f5
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>
  • Loading branch information
shannonz88 authored and pm215 committed May 31, 2018
1 parent 887aae1 commit 34ffaca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/intc/arm_gicv3_kvm.c
Expand Up @@ -243,6 +243,7 @@ static void kvm_dist_putbmp(GICv3State *s, uint32_t offset,
if (clroffset != 0) {
reg = 0;
kvm_gicd_access(s, clroffset, &reg, true);
clroffset += 4;
}
reg = *gic_bmp_ptr32(bmp, irq);
kvm_gicd_access(s, offset, &reg, true);
Expand Down

0 comments on commit 34ffaca

Please sign in to comment.