diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2020-08-03 17:55:03 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-08-03 17:55:03 +0100 |
commit | faf7c6de34fb8eaa566726cc658ba5ad81fb32af (patch) | |
tree | 345e882da13bdc0bfb228a045560777625c666df /target/sh4/Makefile.objs | |
parent | e7e5a9595ab1136845c444141830fca0d2746a73 (diff) | |
download | qemu-faf7c6de34fb8eaa566726cc658ba5ad81fb32af.zip |
include/hw/irq.h: New function qemu_irq_is_connected()
Mostly devices don't need to care whether one of their output
qemu_irq lines is connected, because functions like qemu_set_irq()
silently do nothing if there is nothing on the other end. However
sometimes a device might want to implement default behaviour for the
case where the machine hasn't wired the line up to anywhere.
Provide a function qemu_irq_is_connected() that devices can use for
this purpose. (The test is trivial but encapsulating it in a
function makes it easier to see where we're doing it in case we need
to change the implementation later.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200728103744.6909-2-peter.maydell@linaro.org
Diffstat (limited to 'target/sh4/Makefile.objs')
0 files changed, 0 insertions, 0 deletions