sun4m: don't connect two qemu_irqs directly to the same input
commita879306ca14de576d3a5dd51f830ebf89753e223
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 19 Dec 2020 11:19:34 +0000 (19 11:19 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 6 Jan 2021 11:41:37 +0000 (6 11:41 +0000)
tree0d502d44eb275a45db218ee76d463fd76e5340cd
parentaecf994bca54bd0d97732a8af03a584c0fdaff4c
sun4m: don't connect two qemu_irqs directly to the same input

The sun4m board code connects both of the IRQ outputs of each ESCC to the
same slavio input qemu_irq. Connecting two qemu_irqs outputs directly to the
same input is not valid as it produces subtly wrong behaviour (for instance
if both the IRQ lines are high, and then one goes low, the PIC input will see
this as a high-to-low transition even though the second IRQ line should still
be holding it high).

This kind of wiring needs an explicitly created OR gate; add one.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20201219111934.5540-1-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/sparc/Kconfig
hw/sparc/sun4m.c