qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v4 14/20] ppc/xics: introduce a helper to insert a n


From: Cédric Le Goater
Subject: [Qemu-devel] [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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]