Message ID | 20181030114048.21527-2-philmd@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | hw/arm/exynos4: Add DMA support for SMDKC210 board | expand |
On 30 October 2018 at 11:40, Philippe Mathieu-Daudé <philmd@redhat.com> wrote: > Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> > Reviewed-by: Alistair Francis <alistair.francis@wdc.com> > Reviewed-by: Richard Henderson <richard.henderson@linaro.org> > --- > hw/arm/xilinx_zynq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c > index f1496d2927..57497b0c4d 100644 > --- a/hw/arm/xilinx_zynq.c > +++ b/hw/arm/xilinx_zynq.c > @@ -294,7 +294,7 @@ static void zynq_init(MachineState *machine) > busdev = SYS_BUS_DEVICE(dev); > sysbus_mmio_map(busdev, 0, 0xF8003000); > sysbus_connect_irq(busdev, 0, pic[45-IRQ_OFFSET]); /* abort irq line */ > - for (n = 0; n < 8; ++n) { /* event irqs */ > + for (n = 0; n < ARRAY_SIZE(dma_irqs); ++n) { /* event irqs */ > sysbus_connect_irq(busdev, n + 1, pic[dma_irqs[n] - IRQ_OFFSET]); > } > > -- > 2.17.2 Since this isn't related to the other patch, I'll just apply it to target-arm.next to save you carrying it around. thanks -- PMM
On 30/10/18 15:07, Peter Maydell wrote: > On 30 October 2018 at 11:40, Philippe Mathieu-Daudé <philmd@redhat.com> wrote: >> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> >> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> >> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> >> --- >> hw/arm/xilinx_zynq.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c >> index f1496d2927..57497b0c4d 100644 >> --- a/hw/arm/xilinx_zynq.c >> +++ b/hw/arm/xilinx_zynq.c >> @@ -294,7 +294,7 @@ static void zynq_init(MachineState *machine) >> busdev = SYS_BUS_DEVICE(dev); >> sysbus_mmio_map(busdev, 0, 0xF8003000); >> sysbus_connect_irq(busdev, 0, pic[45-IRQ_OFFSET]); /* abort irq line */ >> - for (n = 0; n < 8; ++n) { /* event irqs */ >> + for (n = 0; n < ARRAY_SIZE(dma_irqs); ++n) { /* event irqs */ >> sysbus_connect_irq(busdev, n + 1, pic[dma_irqs[n] - IRQ_OFFSET]); >> } >> >> -- >> 2.17.2 > > Since this isn't related to the other patch, I'll just apply > it to target-arm.next to save you carrying it around. Thank you!
diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c index f1496d2927..57497b0c4d 100644 --- a/hw/arm/xilinx_zynq.c +++ b/hw/arm/xilinx_zynq.c @@ -294,7 +294,7 @@ static void zynq_init(MachineState *machine) busdev = SYS_BUS_DEVICE(dev); sysbus_mmio_map(busdev, 0, 0xF8003000); sysbus_connect_irq(busdev, 0, pic[45-IRQ_OFFSET]); /* abort irq line */ - for (n = 0; n < 8; ++n) { /* event irqs */ + for (n = 0; n < ARRAY_SIZE(dma_irqs); ++n) { /* event irqs */ sysbus_connect_irq(busdev, n + 1, pic[dma_irqs[n] - IRQ_OFFSET]); }