diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-11 15:21:04 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-11 15:21:04 +0000 |
commit | 51bf9e7e1870996ae7f4741530e6134b485de321 (patch) | |
tree | 37ae5c18c506828b9c6dcce4185bb0120ccc2d02 /hw | |
parent | 8871565764495cfe873b781f52e0d39ecbc3ddf6 (diff) | |
download | qemu-51bf9e7e1870996ae7f4741530e6134b485de321.zip qemu-51bf9e7e1870996ae7f4741530e6134b485de321.tar.gz qemu-51bf9e7e1870996ae7f4741530e6134b485de321.tar.bz2 |
qemu: add qemu_free_irqs (Marcelo Tosatti)
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6602 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/irq.c | 6 | ||||
-rw-r--r-- | hw/irq.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -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; @@ -27,6 +27,7 @@ static inline void qemu_irq_pulse(qemu_irq irq) /* Returns an array of N IRQs. */ qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n); +void qemu_free_irqs(qemu_irq *s); /* Returns a new IRQ with opposite polarity. */ qemu_irq qemu_irq_invert(qemu_irq irq); |