]> git.proxmox.com Git - mirror_qemu.git/commit
leon3: use qemu_irq framework instead of callback as property
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 17 Oct 2019 16:42:35 +0000 (18:42 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Jan 2020 13:24:29 +0000 (17:24 +0400)
commitab4c072d2f2f4d2e4bfa54bb89e43e2b4cb86275
tree34f1dc9f3bcd7bd8187debedeb775b939e87d2b2
parent3110ce819278f1b6d2c4fdd3e15e773e8f226316
leon3: use qemu_irq framework instead of callback as property

"set_pin_in" property is used to define a callback mechanism where the
device says "call the callback function, passing it an opaque cookie
and a 32-bit value". We already have a generic mechanism for doing
that, which is the qemu_irq. So we should just use that.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
hw/intc/grlib_irqmp.c
hw/sparc/leon3.c
target/sparc/cpu.h