]> git.proxmox.com Git - mirror_qemu.git/commit
hw/m68k/next-cube: Make next_irq take NeXTPC* as its opaque
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Jan 2021 20:12:00 +0000 (20:12 +0000)
committerThomas Huth <huth@tuxfamily.org>
Tue, 19 Jan 2021 08:11:39 +0000 (09:11 +0100)
commitb497f4a1f8ee8aa07d03ed9dac7f4eff5048a949
tree38dc0fccfc09fe2da50a989dfd5d4e84ff69909d
parent1dc7aeae614233cc02825a85d129512d29510576
hw/m68k/next-cube: Make next_irq take NeXTPC* as its opaque

Make the next_irq function take a NeXTPC* as its opaque rather than
the M68kCPU*.  This will make it simpler to turn the next_irq
function into a gpio input line of the NeXTPC device in the next
commit.

For this to work we have to pass the CPU to the NeXTPC device via a
link property, in the same way we do in q800.c (and for the same
reason).

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