[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT e1a0e47] escc: fix IRQ routing, broken by 6c319c8

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT e1a0e47] escc: fix IRQ routing, broken by 6c319c82223a1766c5d64a20051e5c6ab7b53951
Date: Tue, 15 Sep 2009 22:16:56 -0000

From: Aurelien Jarno <address@hidden>

The logic of Zilog makes channel B the first device and channel A the
second one.

Signed-off-by: Aurelien Jarno <address@hidden>

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);
     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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]