aboutsummaryrefslogtreecommitdiffstats
path: root/hw/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/irq.c')
-rw-r--r--hw/irq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/irq.c b/hw/irq.c
index eca707d..7703f62 100644
--- a/hw/irq.c
+++ b/hw/irq.c
@@ -56,6 +56,12 @@ qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n)
return s;
}
+void qemu_free_irqs(qemu_irq *s)
+{
+ qemu_free(s[0]);
+ qemu_free(s);
+}
+
static void qemu_notirq(void *opaque, int line, int level)
{
struct IRQState *irq = opaque;