summary refs log tree commit diff stats
path: root/hw/core/irq.c
diff options
context:
space:
mode:
authorZongyuan Li <zongyuan.li@smartx.com>2022-03-25 02:15:57 +0800
committerPeter Maydell <peter.maydell@linaro.org>2022-04-21 11:37:04 +0100
commit0ebfc997d29c3789b9bd41fe53fc198c2fd550da (patch)
treea22fe19e43e7e392a920d2ad511cc8a2aec90277 /hw/core/irq.c
parentd0a030d80165d0b20b0687dab8f99056eee68352 (diff)
downloadfocaccia-qemu-0ebfc997d29c3789b9bd41fe53fc198c2fd550da.tar.gz
focaccia-qemu-0ebfc997d29c3789b9bd41fe53fc198c2fd550da.zip
hw/core/irq: remove unused 'qemu_irq_split' function
Signed-off-by: Zongyuan Li <zongyuan.li@smartx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220324181557.203805-5-zongyuan.li@smartx.com
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/irq.c')
-rw-r--r--hw/core/irq.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/hw/core/irq.c b/hw/core/irq.c
index 741219277b..3623f711fe 100644
--- a/hw/core/irq.c
+++ b/hw/core/irq.c
@@ -106,21 +106,6 @@ qemu_irq qemu_irq_invert(qemu_irq irq)
     return qemu_allocate_irq(qemu_notirq, irq, 0);
 }
 
-static void qemu_splitirq(void *opaque, int line, int level)
-{
-    struct IRQState **irq = opaque;
-    irq[0]->handler(irq[0]->opaque, irq[0]->n, level);
-    irq[1]->handler(irq[1]->opaque, irq[1]->n, level);
-}
-
-qemu_irq qemu_irq_split(qemu_irq irq1, qemu_irq irq2)
-{
-    qemu_irq *s = g_new0(qemu_irq, 2);
-    s[0] = irq1;
-    s[1] = irq2;
-    return qemu_allocate_irq(qemu_splitirq, s, 0);
-}
-
 void qemu_irq_intercept_in(qemu_irq *gpio_in, qemu_irq_handler handler, int n)
 {
     int i;