From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqxdz-0007kg-Rr for qemu-devel@nongnu.org; Mon, 03 Oct 2016 03:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqxdw-0003l4-Mj for qemu-devel@nongnu.org; Mon, 03 Oct 2016 03:26:35 -0400 Received: from 9.mo68.mail-out.ovh.net ([46.105.78.111]:36709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqxdw-0003kk-I4 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 03:26:32 -0400 Received: from player711.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo68.mail-out.ovh.net (Postfix) with ESMTP id 199FE10005BC for ; Mon, 3 Oct 2016 09:26:32 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Mon, 3 Oct 2016 09:24:50 +0200 Message-Id: <1475479496-16158-15-git-send-email-clg@kaod.org> In-Reply-To: <1475479496-16158-1-git-send-email-clg@kaod.org> References: <1475479496-16158-1-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 14/20] ppc/xics: introduce a helper to insert a new ics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org Cc: David Gibson , Benjamin Herrenschmidt , qemu-devel@nongnu.org, Cedric Le Goater Interrupt Control Sources (ICS) are now maintained under a list. Signed-off-by: C=C3=A9dric Le Goater --- 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) } } =20 +void xics_insert_ics(XICSState *xics, ICSState *ics) +{ + ics->xics =3D xics; + QLIST_INSERT_HEAD(&xics->ics, ics, list); +} + static void xics_prop_get_nr_irqs(Object *obj, Visitor *v, const char *n= ame, 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); =20 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); =20 #endif /* XICS_H */ --=20 2.7.4