[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v4 14/20] ppc/xics: introduce a helper to insert a new
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH v4 14/20] ppc/xics: introduce a helper to insert a new ics |
Date: |
Mon, 3 Oct 2016 09:24:50 +0200 |
Interrupt Control Sources (ICS) are now maintained under a list.
Signed-off-by: Cédric Le Goater <address@hidden>
---
hw/intc/xics.c | 6 ++++++
include/hw/ppc/xics.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/hw/intc/xics.c b/hw/intc/xics.c
index 876c472aaa69..3c250fca85c0 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -131,6 +131,12 @@ static void xics_common_reset(DeviceState *d)
}
}
+void xics_insert_ics(XICSState *xics, ICSState *ics)
+{
+ ics->xics = xics;
+ QLIST_INSERT_HEAD(&xics->ics, ics, list);
+}
+
static void xics_prop_get_nr_irqs(Object *obj, Visitor *v, const char *name,
void *opaque, Error **errp)
{
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 52c426d409c9..dea9b92d4726 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -208,5 +208,6 @@ ICSState *xics_find_source(XICSState *icp, int irq);
void xics_hmp_info_pic(Monitor *mon, const QDict *qdict);
ICPState *xics_find_icp(XICSState *xics, int cpu_index);
+void xics_insert_ics(XICSState *xics, ICSState *ics);
#endif /* XICS_H */
--
2.7.4
- Re: [Qemu-ppc] [PATCH v4 10/20] ppc/xics: Make the ICSState a list, (continued)
[Qemu-ppc] [PATCH v4 11/20] ppc/xics: Split ICS into ics-base and ics class, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 12/20] ppc/xics: Add xics to the monitor "info pic" command, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 13/20] ppc/xics: introduce helpers to find an ICP from some (CPU) index, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 14/20] ppc/xics: introduce a helper to insert a new ics,
Cédric Le Goater <=
[Qemu-ppc] [PATCH v4 15/20] ppc/xics: Add "native" XICS subclass, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 16/20] ppc/pnv: add a XICS native to each PowerNV chip, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 17/20] ppc/pnv: Add cut down PSI bridge model and hookup external interrupt, Cédric Le Goater, 2016/10/03