[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH v3 1/4] hw/arm/xlx-zynqmp: Realize cluster after p
From: |
Edgar E. Iglesias |
Subject: |
Re: [Qemu-arm] [PATCH v3 1/4] hw/arm/xlx-zynqmp: Realize cluster after putting RPUs in it |
Date: |
Mon, 21 Jan 2019 11:33:20 -0800 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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 <address@hidden>
> Reviewed-by: Richard Henderson <address@hidden>
> Reviewed-by: Luc Michel <address@hidden>
> Reviewed-by: Alistair Francis <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
> ---
> 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
>
- [Qemu-arm] [PATCH v3 0/4] tcg: support heterogenous CPU clusters, Peter Maydell, 2019/01/21
- [Qemu-arm] [PATCH v3 1/4] hw/arm/xlx-zynqmp: Realize cluster after putting RPUs in it, Peter Maydell, 2019/01/21
- Re: [Qemu-arm] [PATCH v3 1/4] hw/arm/xlx-zynqmp: Realize cluster after putting RPUs in it,
Edgar E. Iglesias <=
- [Qemu-arm] [PATCH v3 4/4] gdbstub: Simplify gdb_get_cpu_pid() to use cpu->cluster_index, Peter Maydell, 2019/01/21
- [Qemu-arm] [PATCH v3 3/4] accel/tcg: Add cluster number to TCG TB hash, Peter Maydell, 2019/01/21
- [Qemu-arm] [PATCH v3 2/4] qom/cpu: Add cluster_index to CPUState, Peter Maydell, 2019/01/21
- Re: [Qemu-arm] [PATCH v3 0/4] tcg: support heterogenous CPU clusters, Peter Maydell, 2019/01/21