On Thu, Sep 10, 2020 at 09:23:25AM +0200, Philippe Mathieu-Daudé wrote: > Replace the magic '4' value by the PCI_NUM_PINS definition. > > Suggested-by: Cédric Le Goater <[email protected]> > Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Acked-by: David Gibson <[email protected]> > --- > hw/ppc/ppc4xx_pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c > index 503ef46b39a..930be78361d 100644 > --- a/hw/ppc/ppc4xx_pci.c > +++ b/hw/ppc/ppc4xx_pci.c > @@ -54,7 +54,7 @@ struct PPC4xxPCIState { > > struct PCIMasterMap pmm[PPC4xx_PCI_NR_PMMS]; > struct PCITargetMap ptm[PPC4xx_PCI_NR_PTMS]; > - qemu_irq irq[4]; > + qemu_irq irq[PCI_NUM_PINS]; > > MemoryRegion container; > MemoryRegion iomem; -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
