diff options
author | Cédric Le Goater | 2019-01-02 06:57:37 +0100 |
---|---|---|
committer | David Gibson | 2019-01-08 23:28:14 +0100 |
commit | a0c493ae67c8176bba0385aaab49d6129838b525 (patch) | |
tree | 4a4e9edfd07e393f150acaadbed41015592755bb /hw/intc/spapr_xive.c | |
parent | spapr_pci: Define SPAPR_MAX_PHBS in hw/pci-host/spapr.h (diff) | |
download | qemu-a0c493ae67c8176bba0385aaab49d6129838b525.tar.gz qemu-a0c493ae67c8176bba0385aaab49d6129838b525.tar.xz qemu-a0c493ae67c8176bba0385aaab49d6129838b525.zip |
spapr/xive: simplify the sPAPR IRQ qirq method for XIVE
The qirq routines of the XiveSource and the sPAPRXive model are only
used under the sPAPR IRQ backend. Simplify the overall call stack and
gather all the code under spapr_qirq_xive(). It will ease future
changes.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/intc/spapr_xive.c')
-rw-r--r-- | hw/intc/spapr_xive.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/hw/intc/spapr_xive.c b/hw/intc/spapr_xive.c index 0e39c90cbd..eea28337e8 100644 --- a/hw/intc/spapr_xive.c +++ b/hw/intc/spapr_xive.c @@ -488,20 +488,6 @@ bool spapr_xive_irq_free(sPAPRXive *xive, uint32_t lisn) return true; } -qemu_irq spapr_xive_qirq(sPAPRXive *xive, uint32_t lisn) -{ - XiveSource *xsrc = &xive->source; - - if (lisn >= xive->nr_irqs) { - return NULL; - } - - /* The sPAPR machine/device should have claimed the IRQ before */ - assert(xive_eas_is_valid(&xive->eat[lisn])); - - return xive_source_qirq(xsrc, lisn); -} - /* * XIVE hcalls * |