]> Git Repo - qemu.git/commitdiff
hw/arm/xlnx-zynqmp: Realize cluster after putting RPUs in it
authorPeter Maydell <[email protected]>
Tue, 29 Jan 2019 11:46:05 +0000 (11:46 +0000)
committerPeter Maydell <[email protected]>
Tue, 29 Jan 2019 11:46:05 +0000 (11:46 +0000)
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 <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Luc Michel <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Message-id: 20190121152218[email protected]

hw/arm/xlnx-zynqmp.c

index 70cbe6bd475bdc2805a82fc1f6310fbf4a16b4e9..4f8bc41d9d459b25c87d6e185b9a69d7bcb790ea 100644 (file)
@@ -188,8 +188,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;
 
@@ -217,6 +215,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)
This page took 0.027159 seconds and 4 git commands to generate.