]> Git Repo - qemu.git/commit
hw/sparc: Make grlib-irqmp device handle its own inbound IRQ lines
authorPeter Maydell <[email protected]>
Sat, 12 Dec 2020 14:41:33 +0000 (14:41 +0000)
committerMark Cave-Ayland <[email protected]>
Wed, 6 Jan 2021 11:41:37 +0000 (11:41 +0000)
commit339195366069635fa47dc995806f236e820e6378
treed50f09a82f28a2907a99a163dce8ec90172d55c7
parent62a9b228b5fefe0f9e364dfeaf3c65022c63cdb9
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 <[email protected]>
Message-Id: <20201212144134[email protected]>
Reviewed-by: KONRAD Frederic <[email protected]>
Signed-off-by: Mark Cave-Ayland <[email protected]>
hw/intc/grlib_irqmp.c
hw/sparc/leon3.c
include/hw/sparc/grlib.h
This page took 0.02842 seconds and 4 git commands to generate.