hw/m68k/next-cube: Make next_irq GPIO inputs to NEXT_PC device
commitd9cd403972f45d0d08b3074cd87dabcf37d4dfcd
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Jan 2021 20:12:02 +0000 (15 20:12 +0000)
committerThomas Huth <huth@tuxfamily.org>
Tue, 19 Jan 2021 08:11:42 +0000 (19 09:11 +0100)
tree686f570e96e67bb2561bd7faa42a5362dacff9b0
parentac99317b5f00e8e04f4d8a9d754d17538decd03c
hw/m68k/next-cube: Make next_irq GPIO inputs to NEXT_PC device

Make the next_irq function be GPIO inputs to the NEXT_PC
device, rather than a freestanding set of qemu_irq lines.

This fixes a minor Coverity issue where it correctly points
out the trivial memory leak of the memory allocated in the
call to qemu_allocate_irqs().

Fixes: CID 1421962
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210115201206.17347-8-peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/m68k/next-cube.c
include/hw/m68k/next-cube.h