浏览代码

hw/ppc/ppc4xx_pci: Replace magic value by the PCI_NUM_PINS definition

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>
Philippe Mathieu-Daudé 5 年之前
父节点
当前提交
0a7553725e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hw/ppc/ppc4xx_pci.c

+ 1 - 1
hw/ppc/ppc4xx_pci.c

@@ -56,7 +56,7 @@ struct PPC4xxPCIState {
 
 
     struct PCIMasterMap pmm[PPC4xx_PCI_NR_PMMS];
     struct PCIMasterMap pmm[PPC4xx_PCI_NR_PMMS];
     struct PCITargetMap ptm[PPC4xx_PCI_NR_PTMS];
     struct PCITargetMap ptm[PPC4xx_PCI_NR_PTMS];
-    qemu_irq irq[4];
+    qemu_irq irq[PCI_NUM_PINS];
 
 
     MemoryRegion container;
     MemoryRegion container;
     MemoryRegion iomem;
     MemoryRegion iomem;