Received: from eggs.gnu.org ([2001:4830:134:3::10]:46659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byuPk-0007SE-5q for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byuPj-00088O-5C for qemu-devel@nongnu.org; Tue, 25 Oct 2016 01:36:44 -0400 Date: Tue, 25 Oct 2016 16:12:35 +1100 From: David Gibson Message-ID: <20161025051235.GZ11052@umbus.fritz.box> References: <1477129610-31353-1-git-send-email-clg@kaod.org> <1477129610-31353-15-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rd/3IrB17klb+Ksj" Content-Disposition: inline In-Reply-To: <1477129610-31353-15-git-send-email-clg@kaod.org> Subject: Re: [Qemu-devel] [PATCH v5 14/17] ppc/xics: introduce a helper to insert a new ics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: qemu-ppc@nongnu.org, Benjamin Herrenschmidt , qemu-devel@nongnu.org, Alexander Graf --rd/3IrB17klb+Ksj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 22, 2016 at 11:46:47AM +0200, C=E9dric Le Goater wrote: > Interrupt Control Sources (ICS) are now maintained under a list. >=20 > Signed-off-by: C=E9dric Le Goater Reviewed-by: David Gibson > --- > hw/intc/xics.c | 6 ++++++ > include/hw/ppc/xics.h | 1 + > 2 files changed, 7 insertions(+) >=20 > 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) > } > } > =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 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); > =20 > ICSState *xics_find_source(XICSState *icp, int irq); > +void xics_insert_ics(XICSState *xics, ICSState *ics); > =20 > typedef struct PnvChip PnvChip; > =20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --rd/3IrB17klb+Ksj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYDunDAAoJEGw4ysog2bOSLQkQAJpPw+AnWJAtN/KcAq6q771k 9HwNK3Hcd72U6c2s4Bx2u035n/WW2mpg9X2k5JaIkm63LFwa1aoz2d7KI0Hxpxtn bcyp95+j1h+C7zinRHyC6yinUKjnIvEN2mhvlNfwq/B1xdiyJrsSUCPq8ZUPnsBG qzSolDTGjmzGFWDFD42YZn5UgJZl+eEorIrG/360fY5wFqMuksGWNSA2lXPGU/j4 5T9ASPWu2l2Ppl0OCfB09EvoCgdHNRWQpSrYMgb/UK7CCAXVe+EcHSkZcTS5tTGS dewRRHN4Vyrc7sgwwJyMNTcMEW1BNopVewY9Pzx8NVuuU59o9d7VLSi5TiSElXL5 R1GHedk59NGmXMgrufXP5Q2iO+guYUcEof/fy4+w7Hls8EvVPzhvU5+ChJEiVTzx +XYvo9v/Va3aQqoZWPYbzxn0aYjrsH4UPR/RnMCPHXE3tKAJs2ciNLMNqjXvtRz0 rW8pNk+GRnsKNdTLmDgnMynhHg3Ssbr1/82oORTd1nhDm++hWUOU8TKeCpE9xcPe HGTBxJmmc+C9Y4fYFudpAjgEwICkw96M5viUi5DmX22KqmhXNyewnNNBBB/cCKi9 vbT8q4XNaIiSqqzkKxW+vZ8EqAl1gDidagRyz9etrbJP1FBeER87nO1ieNEJHdop IOAcf8cl8caSVnxcfXYy =6zRg -----END PGP SIGNATURE----- --rd/3IrB17klb+Ksj--