hw/m68k/q800.c: Make the GLUE chip an actual QOM device
commit07e39012fee26267fa7cdcbc8456a3601f199d41
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Nov 2020 23:51:09 +0000 (6 23:51 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 12 Dec 2020 17:06:01 +0000 (12 18:06 +0100)
tree482c781687cf757eebaf5f28bd9ffc596df5f561
parent9526486164818f1c59a142dec8a1f09fbf77669c
hw/m68k/q800.c: Make the GLUE chip an actual QOM device

The handling of the GLUE (General Logic Unit) device is
currently open-coded. Make this into a proper QOM device.

This minor piece of modernisation gets rid of the free
floating qemu_irq array 'pic', which Coverity points out
is technically leaked when we exit the machine init function.
(The replacement glue device is not leaked because it gets
added to the sysbus, so it's accessible via that.)

Fixes: Coverity CID 1421883
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201106235109.7066-3-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/m68k/q800.c