summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorPeter Maydell2021-01-15 21:12:02 +0100
committerThomas Huth2021-01-19 09:11:42 +0100
commitd9cd403972f45d0d08b3074cd87dabcf37d4dfcd (patch)
tree686f570e96e67bb2561bd7faa42a5362dacff9b0 /include/hw
parenthw/m68k/next-cube: Move int_status and int_mask to NeXTPC struct (diff)
downloadqemu-d9cd403972f45d0d08b3074cd87dabcf37d4dfcd.tar.gz
qemu-d9cd403972f45d0d08b3074cd87dabcf37d4dfcd.tar.xz
qemu-d9cd403972f45d0d08b3074cd87dabcf37d4dfcd.zip
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>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/m68k/next-cube.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/m68k/next-cube.h b/include/hw/m68k/next-cube.h
index 5a56c354b8..d38c52d540 100644
--- a/include/hw/m68k/next-cube.h
+++ b/include/hw/m68k/next-cube.h
@@ -39,7 +39,8 @@ enum next_irqs {
NEXT_ENRX_DMA_I,
NEXT_SCSI_DMA_I,
NEXT_SCC_DMA_I,
- NEXT_SND_I
+ NEXT_SND_I,
+ NEXT_NUM_IRQS
};
#endif /* NEXT_CUBE_H */