diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-10-17 18:42:35 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-07 17:24:29 +0400 |
commit | ab4c072d2f2f4d2e4bfa54bb89e43e2b4cb86275 (patch) | |
tree | 34f1dc9f3bcd7bd8187debedeb775b939e87d2b2 /target | |
parent | 3110ce819278f1b6d2c4fdd3e15e773e8f226316 (diff) |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/sparc/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index ae97c7d9f7..e70fec0133 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -541,6 +541,7 @@ struct CPUSPARCState { #endif sparc_def_t def; + qemu_irq pil_irq; void *irq_manager; void (*qemu_irq_ack)(CPUSPARCState *env, void *irq_manager, int intno); |