summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-02-03 12:56:21 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-02-15 21:39:17 +0000
commitfeda9d5de9ef640f047617312b6491713381a59a (patch)
treee13c498aa3072987506b8c29efc90164179f63a7
parent7f28286f5cb1ca682e3ba0a8706d8884f12bc49e (diff)
downloadqemu-openbios-feda9d5de9ef640f047617312b6491713381a59a.tar.gz
40p: Allow Raven controller to handle all IRQs
In commit ce7fa4d29b we adapted to match QEMU (invalid) code. Now than QEMU has been fixed and handle the 4 IRQs, update the OF device tree again. Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--drivers/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci.c b/drivers/pci.c
index 34ae69a9..b05ca3b1 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -2009,7 +2009,7 @@ static void ob_pci_host_bus_interrupt(ucell dnode, u32 *props, int *ncells, u32
/* Use the same "physical" routing as QEMU's raven_map_irq() although
ultimately all 4 PCI interrupts are ORd to IRQ 15 as indicated
by the PReP specification */
- props[(*ncells)++] = arch->irqs[((intno - 1) + (addr >> 11)) & 1];
+ props[(*ncells)++] = arch->irqs[((intno - 1) + (addr >> 11)) & 3];
}
props[(*ncells)++] = 1;
}