hw/ppc/virtex_ml507: Drop use of ppcuic_init()
commitc5ac9dc64fa552a61942c397f70511a32ed95a6f
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 12 Dec 2020 00:15:32 +0000 (12 00:15 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 6 Jan 2021 00:09:59 +0000 (6 11:09 +1100)
treec6b823c9a4b16a8d5974d9ed526f98734af8bbb8
parent34d0831f38fd8ca253fc77d66f54976e440f0131
hw/ppc/virtex_ml507: Drop use of ppcuic_init()

Switch the virtex_ml507 board to directly creating and
configuring the UIC, rather than doing it via the old
ppcuic_init() helper function.

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

Fixes: Coverity CID 1421992
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20201212001537.24520-4-peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/virtex_ml507.c