Received: from eggs.gnu.org ([209.51.188.92]:46531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glfKb-0003wK-R6 for qemu-devel@nongnu.org; Mon, 21 Jan 2019 14:34:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glfKb-0001g5-22 for qemu-devel@nongnu.org; Mon, 21 Jan 2019 14:34:01 -0500 Date: Mon, 21 Jan 2019 11:33:20 -0800 From: "Edgar E. Iglesias" Message-ID: <20190121193320.GC19750@toto> References: <20190121152218.9592-1-peter.maydell@linaro.org> <20190121152218.9592-2-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190121152218.9592-2-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH v3 1/4] hw/arm/xlx-zynqmp: Realize cluster after putting RPUs in it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Richard Henderson , Peter Crosthwaite , Paolo Bonzini , Alistair Francis , Eduardo Habkost , Marcel Apfelbaum , "Emilio G . Cota" , Aleksandar Markovic On Mon, Jan 21, 2019 at 03:22:15PM +0000, Peter Maydell wrote: > Currently the cluster implementation doesn't have any constraints > on the ordering of realizing the TYPE_CPU_CLUSTER and populating it > with child objects. We want to impose a constraint that realize > must happen only after all the child objects are added, so move > the realize of rpu_cluster. (The apu_cluster is already > realized after child population.) > > Signed-off-by: Peter Maydell > Reviewed-by: Richard Henderson > Reviewed-by: Luc Michel > Reviewed-by: Alistair Francis Reviewed-by: Edgar E. Iglesias > --- > hw/arm/xlnx-zynqmp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c > index c67ac2e64ac..370b0e44a38 100644 > --- a/hw/arm/xlnx-zynqmp.c > +++ b/hw/arm/xlnx-zynqmp.c > @@ -183,8 +183,6 @@ static void xlnx_zynqmp_create_rpu(XlnxZynqMPState *s, const char *boot_cpu, > &error_abort, NULL); > qdev_prop_set_uint32(DEVICE(&s->rpu_cluster), "cluster-id", 1); > > - qdev_init_nofail(DEVICE(&s->rpu_cluster)); > - > for (i = 0; i < num_rpus; i++) { > char *name; > > @@ -212,6 +210,8 @@ static void xlnx_zynqmp_create_rpu(XlnxZynqMPState *s, const char *boot_cpu, > return; > } > } > + > + qdev_init_nofail(DEVICE(&s->rpu_cluster)); > } > > static void xlnx_zynqmp_init(Object *obj) > -- > 2.20.1 >