]> git.proxmox.com Git - mirror_qemu.git/commit
hw/openrisc/openrisc_sim: Use IRQ splitter when connecting UART
authorStafford Horne <shorne@gmail.com>
Sat, 19 Feb 2022 05:48:46 +0000 (14:48 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 25 Feb 2022 06:42:23 +0000 (15:42 +0900)
commit22991cfbdfacc195b982d3ee12a823e75ded4b29
tree5156c4b28a773c3ebbfd8e1cd327441024c33bbf
parent76f36985e54e1ebb2c1907bee75b5f7d778a5902
hw/openrisc/openrisc_sim: Use IRQ splitter when connecting UART

Currently the OpenRISC SMP configuration only supports 2 cores due to
the UART IRQ routing being limited to 2 cores.  As was done in commit
1eeffbeb11 ("hw/openrisc/openrisc_sim: Use IRQ splitter when connecting
IRQ to multiple CPUs") we can use a splitter to wire more than 2 CPUs.

This patch moves serial initialization out to it's own function and
uses a splitter to connect multiple CPU irq lines to the UART.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/openrisc/openrisc_sim.c