From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwPQN-0001GJ-Uu for qemu-devel@nongnu.org; Tue, 18 Oct 2016 04:07:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwPQN-0000lI-4G for qemu-devel@nongnu.org; Tue, 18 Oct 2016 04:07:03 -0400 Received: from 15.mo1.mail-out.ovh.net ([188.165.38.232]:43624) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwPQM-0000l1-V7 for qemu-devel@nongnu.org; Tue, 18 Oct 2016 04:07:03 -0400 Received: from player726.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id D856815650 for ; Tue, 18 Oct 2016 10:07:01 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 18 Oct 2016 10:06:33 +0200 Message-Id: <1476777994-28711-3-git-send-email-clg@kaod.org> In-Reply-To: <1476777994-28711-1-git-send-email-clg@kaod.org> References: <1476777994-28711-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 2/3] ppc/xics: add a XICSState backlink in ICPState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org Cc: David Gibson , qemu-devel@nongnu.org, Alexander Graf , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= The link will be used to change the API of the icp_* routines which are still using an XICSState as an argument. Signed-off-by: C=C3=A9dric Le Goater --- hw/intc/xics.c | 1 + include/hw/ppc/xics.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hw/intc/xics.c b/hw/intc/xics.c index c051eebb446b..9f2c81a7f140 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -198,6 +198,7 @@ void xics_set_nr_servers(XICSState *xics, uint32_t nr= _servers, object_initialize(icp, sizeof(*icp), typename); snprintf(name, sizeof(name), "icp[%d]", i); object_property_add_child(OBJECT(xics), name, OBJECT(icp), errp)= ; + icp->xics =3D xics; } } =20 diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index 573b1920536b..1468d6a89088 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -117,6 +117,8 @@ struct ICPState { uint8_t mfrr; qemu_irq output; bool cap_irq_xics_enabled; + + XICSState *xics; }; =20 #define TYPE_ICS_BASE "ics-base" --=20 2.7.4