summary refs log tree commit diff stats
path: root/include/hw/intc
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-01-08 17:12:11 +0000
committerDavid Gibson <david@gibson.dropbear.id.au>2021-01-19 10:20:29 +1100
commit71c3c44bc3e4b516efc868b05237aabefbf20fa8 (patch)
tree27b52888d3f8ace8d681bcd4f876afffc9004dd1 /include/hw/intc
parent37dc4b5f7c5ef7300b3a1e2bc298db9edb0efdc5 (diff)
downloadfocaccia-qemu-71c3c44bc3e4b516efc868b05237aabefbf20fa8.tar.gz
focaccia-qemu-71c3c44bc3e4b516efc868b05237aabefbf20fa8.zip
hw/ppc/ppc405_uc: Drop use of ppcuic_init()
Switch the ppc405_uc boards to directly creating and configuring the
UIC, rather than doing it via the old ppcuic_init() helper function.

We retain the API feature of ppc405ep_init() where it passes back
something allowing the callers to wire up devices to the UIC if
they need to, even though neither of the callsites currently makes
use of this ability -- instead of passing back the qemu_irq array
we pass back the UIC DeviceState.

This fixes a trivial Coverity-detected memory leak where
we were leaking the array of IRQs returned by ppcuic_init().

Fixes: Coverity CID 1421922
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210108171212.16500-4-peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/intc')
0 files changed, 0 insertions, 0 deletions