summaryrefslogtreecommitdiffstats
path: root/hw/core/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/irq.c')
-rw-r--r--hw/core/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/irq.c b/hw/core/irq.c
index cffced0..4a580a2 100644
--- a/hw/core/irq.c
+++ b/hw/core/irq.c
@@ -140,7 +140,7 @@ void qemu_irq_intercept_in(qemu_irq *gpio_in, qemu_irq_handler handler, int n)
for (i = 0; i < n; i++) {
*old_irqs[i] = *gpio_in[i];
gpio_in[i]->handler = handler;
- gpio_in[i]->opaque = old_irqs;
+ gpio_in[i]->opaque = &old_irqs[i];
}
}
OpenPOWER on IntegriCloud