qemu/hw/openrisc
Peter Maydell 1eeffbeb11 hw/openrisc/openrisc_sim: Use IRQ splitter when connecting IRQ to multiple CPUs
openrisc_sim_net_init() attempts to connect the IRQ line from the
ethernet device to both CPUs in an SMP configuration by simply caling
sysbus_connect_irq() for it twice.  This doesn't work, because the
second connection simply overrides the first.

Fix this by creating a TYPE_SPLIT_IRQ to split the IRQ in the SMP
case.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stafford Horne <shorne@gmail.com>
Message-id: 20201127225127.14770-2-peter.maydell@linaro.org
2020-12-15 12:04:29 +00:00
..
cputimer.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
Kconfig hw/openrisc/openrisc_sim: Use IRQ splitter when connecting IRQ to multiple CPUs 2020-12-15 12:04:29 +00:00
meson.build meson: convert hw/arch* 2020-08-21 06:30:33 -04:00
openrisc_sim.c hw/openrisc/openrisc_sim: Use IRQ splitter when connecting IRQ to multiple CPUs 2020-12-15 12:04:29 +00:00
pic_cpu.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00