summaryrefslogtreecommitdiffstats
path: root/hw/spapr_pci.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2012-09-12 16:57:18 +0000
committerAlexander Graf <agraf@suse.de>2012-10-04 15:54:18 +0200
commitff9d2afa618acd81d926c9c213b4ff5f7163db1d (patch)
tree7a1ed80fb959de8e5c961027cdd3b327ba124278 /hw/spapr_pci.c
parent98ca8c023825fc6dd99e6cea1956d84ed8cadb3a (diff)
downloadhqemu-ff9d2afa618acd81d926c9c213b4ff5f7163db1d.zip
hqemu-ff9d2afa618acd81d926c9c213b4ff5f7163db1d.tar.gz
pseries: Remove XICS irq type enum type
Currently the XICS interrupt controller emulation uses a custom enum to specify whether a given interrupt is level-sensitive or message-triggered. This enum makes life awkward for saving the state, and isn't particularly useful since there are only two possibilities. This patch replaces the enum with a simple bool. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/spapr_pci.c')
-rw-r--r--hw/spapr_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c
index 203155e..b628f89 100644
--- a/hw/spapr_pci.c
+++ b/hw/spapr_pci.c
@@ -351,7 +351,7 @@ static void rtas_ibm_change_msi(sPAPREnvironment *spapr,
/* There is no cached config, allocate MSIs */
if (!phb->msi_table[ndev].nvec) {
- irq = spapr_allocate_irq_block(req_num, XICS_MSI);
+ irq = spapr_allocate_irq_block(req_num, true);
if (irq < 0) {
fprintf(stderr, "Cannot allocate MSIs for device#%d", ndev);
rtas_st(rets, 0, -1); /* Hardware error */
OpenPOWER on IntegriCloud