diff options
| author | BALATON Zoltan <balaton@eik.bme.hu> | 2024-11-25 15:48:45 +1000 |
|---|---|---|
| committer | Nicholas Piggin <npiggin@gmail.com> | 2024-11-27 02:49:36 +1000 |
| commit | 0805136a44d39adc2467f23ac3c65e680e45d0a2 (patch) | |
| tree | 3a60114c3dcd51f32ae1d9cc2e21bfc677274f66 /hw/pci-host | |
| parent | e8185fdc63e1db1efba695aae568fae8a075a815 (diff) | |
| download | focaccia-qemu-0805136a44d39adc2467f23ac3c65e680e45d0a2.tar.gz focaccia-qemu-0805136a44d39adc2467f23ac3c65e680e45d0a2.zip | |
hw/ppc/pegasos2: Fix IRQ routing from pci.0
The MV64361 has two PCI buses one of which is used for AGP on PegasosII. So far we only emulated the PCI bus on pci.1 but some graphics cards are only recognised by some guests when connected to pci.0 corresponding to the AGP port. So far the interrupts were not routed from pci.0 so this patch fixes that allowing the use of both PCI buses. On real board only INTA and INTB are connected for AGP but to avoid surprises we connect all 4 PCI interrupt lines so pci.0 can be used for all PCI cards as well. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'hw/pci-host')
| -rw-r--r-- | hw/pci-host/mv64361.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci-host/mv64361.c b/hw/pci-host/mv64361.c index 1036d8600d..421c287eb0 100644 --- a/hw/pci-host/mv64361.c +++ b/hw/pci-host/mv64361.c @@ -95,6 +95,7 @@ static void mv64361_pcihost_realize(DeviceState *dev, Error **errp) &s->mem, &s->io, 0, 4, TYPE_PCI_BUS); g_free(name); pci_create_simple(h->bus, 0, TYPE_MV64361_PCI_BRIDGE); + qdev_init_gpio_out(dev, s->irq, ARRAY_SIZE(s->irq)); } static Property mv64361_pcihost_props[] = { |