diff options
author | Peter Maydell | 2020-12-12 15:41:33 +0100 |
---|---|---|
committer | Mark Cave-Ayland | 2021-01-06 12:41:37 +0100 |
commit | 339195366069635fa47dc995806f236e820e6378 (patch) | |
tree | d50f09a82f28a2907a99a163dce8ec90172d55c7 /include/hw/sparc | |
parent | hw/timer/slavio_timer: Allow 64-bit accesses (diff) | |
download | qemu-339195366069635fa47dc995806f236e820e6378.tar.gz qemu-339195366069635fa47dc995806f236e820e6378.tar.xz qemu-339195366069635fa47dc995806f236e820e6378.zip |
hw/sparc: Make grlib-irqmp device handle its own inbound IRQ lines
Currently the GRLIB_IRQMP device is used in one place (the leon3 board),
but instead of the device providing inbound gpio lines for the board
to wire up, the board code itself calls qemu_allocate_irqs() with
the handler function being a set_irq function defined in the code
for the device.
Refactor this into the standard setup of a device having input
gpio lines.
This fixes a trivial Coverity memory leak report (the leon3
board code leaks the IRQ array returned from qemu_allocate_irqs()).
Fixes: Coverity CID 1421922
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201212144134.29594-2-peter.maydell@linaro.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/sparc')
-rw-r--r-- | include/hw/sparc/grlib.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/sparc/grlib.h b/include/hw/sparc/grlib.h index 78b6178fcd..e1d1beaa73 100644 --- a/include/hw/sparc/grlib.h +++ b/include/hw/sparc/grlib.h @@ -36,8 +36,6 @@ typedef void (*set_pil_in_fn) (void *opaque, uint32_t pil_in); -void grlib_irqmp_set_irq(void *opaque, int irq, int level); - void grlib_irqmp_ack(DeviceState *dev, int intno); /* GPTimer */ |