aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2009-09-16 00:13:15 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-09-16 00:15:33 +0200
commite1a0e47f763f2b9bc1f90111da379abe568e8ed5 (patch)
treea03846f0ad0e7f89a7fd07fba9be3bba3fce3b64
parentdea21e97f433093bd93b0fb55ec1e1eec3171158 (diff)
downloadqemu-e1a0e47f763f2b9bc1f90111da379abe568e8ed5.zip
qemu-e1a0e47f763f2b9bc1f90111da379abe568e8ed5.tar.gz
qemu-e1a0e47f763f2b9bc1f90111da379abe568e8ed5.tar.bz2
escc: fix IRQ routing, broken by 6c319c82223a1766c5d64a20051e5c6ab7b53951
The logic of Zilog makes channel B the first device and channel A the second one. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--hw/escc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/escc.c b/hw/escc.c
index 491c4cf..17694ed 100644
--- a/hw/escc.c
+++ b/hw/escc.c
@@ -743,8 +743,8 @@ int escc_init(target_phys_addr_t base, qemu_irq irqA, qemu_irq irqB,
qdev_prop_set_uint32(dev, "chnAtype", ser);
qdev_init(dev);
s = sysbus_from_qdev(dev);
- sysbus_connect_irq(s, 0, irqA);
- sysbus_connect_irq(s, 1, irqB);
+ sysbus_connect_irq(s, 0, irqB);
+ sysbus_connect_irq(s, 1, irqA);
if (base) {
sysbus_mmio_map(s, 0, base);
}