hw/openrisc/openrisc_sim: Abstract out "get IRQ x of CPU y"
commiteaca43a0f7a3548a527e74b7d14d69eeb31dc339
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Nov 2020 22:51:26 +0000 (27 22:51 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Dec 2020 12:04:29 +0000 (15 12:04 +0000)
tree893b7dc8b0d2f6976f49e57b375a324855abaacf
parent1eeffbeb1114441cb1822ce0af952a283e008f31
hw/openrisc/openrisc_sim: Abstract out "get IRQ x of CPU y"

We're about to refactor the OpenRISC pic_cpu code in a way that means
that just grabbing the whole qemu_irq[] array of inbound IRQs for a
CPU won't be possible any more.  Abstract out a function for "return
the qemu_irq for IRQ x input of CPU y" so we can more easily replace
the implementation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stafford Horne <shorne@gmail.com>
Message-id: 20201127225127.14770-3-peter.maydell@linaro.org
hw/openrisc/openrisc_sim.c