hw/ppc/pegasos2: Fix IRQ routing from pci.0
authorBALATON Zoltan <balaton@eik.bme.hu>
Mon, 25 Nov 2024 05:48:45 +0000 (15:48 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 26 Nov 2024 16:49:36 +0000 (02:49 +1000)
commit0805136a44d39adc2467f23ac3c65e680e45d0a2
tree3a60114c3dcd51f32ae1d9cc2e21bfc677274f66
parente8185fdc63e1db1efba695aae568fae8a075a815
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>
hw/pci-host/mv64361.c
hw/ppc/pegasos2.c