hw/ppc/ppc4xx_pci: Replace magic value by the PCI_NUM_PINS definition
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 10 Sep 2020 07:23:25 +0000 (09:23 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 16 Sep 2020 08:44:52 +0000 (10:44 +0200)
Replace the magic '4' value by the PCI_NUM_PINS definition.

Suggested-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200910072325.439344-3-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/ppc/ppc4xx_pci.c

index c24bac96c32ffd4d9fa785c25dca672967c86e96..ca2553bf8b75bc8ef26266afc422bda920b9e830 100644 (file)
@@ -56,7 +56,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;