]> Git Repo - qemu.git/commitdiff
mps2-an511: Fix wiring of UART overflow interrupt lines
authorPeter Maydell <[email protected]>
Thu, 14 Sep 2017 17:43:19 +0000 (18:43 +0100)
committerPeter Maydell <[email protected]>
Thu, 14 Sep 2017 17:43:19 +0000 (18:43 +0100)
Fix an error that meant we were wiring every UART's overflow
interrupts into the same inputs 0 and 1 of the OR gate,
rather than giving each its own input.

Cc: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: 1505232834[email protected]

hw/arm/mps2.c

index abb0ab6d71ad7e18f9b7cc2c99d20357d593f708..769cff872caca1831ef8f57aabf382d43da0edef 100644 (file)
@@ -287,8 +287,8 @@ static void mps2_common_init(MachineState *machine)
             cmsdk_apb_uart_create(uartbase[i],
                                   qdev_get_gpio_in(txrx_orgate_dev, 0),
                                   qdev_get_gpio_in(txrx_orgate_dev, 1),
-                                  qdev_get_gpio_in(orgate_dev, 0),
-                                  qdev_get_gpio_in(orgate_dev, 1),
+                                  qdev_get_gpio_in(orgate_dev, i * 2),
+                                  qdev_get_gpio_in(orgate_dev, i * 2 + 1),
                                   NULL,
                                   uartchr, SYSCLK_FRQ);
         }
This page took 0.025695 seconds and 4 git commands to generate.