qemu-devel
[Top][All Lists]
Advanced

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

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


From: Cédric Le Goater
Subject: [Qemu-devel] [PATCH v5 14/17] ppc/xics: introduce a helper to insert a new ics
Date: Sat, 22 Oct 2016 11:46:47 +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 095c16a30082..f24787e95013 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -151,6 +151,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 beb232e616c5..f31eef8c9f6c 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -228,6 +228,7 @@ void ics_simple_write_xive(ICSState *ics, int nr, int 
server,
 void ics_set_irq_type(ICSState *ics, int srcno, bool lsi);
 
 ICSState *xics_find_source(XICSState *icp, int irq);
+void xics_insert_ics(XICSState *xics, ICSState *ics);
 
 typedef struct PnvChip PnvChip;
 
-- 
2.7.4




reply via email to

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