Skip to content

Commit

Permalink
arm: remove remaining cannot_destroy_with_object_finalize_yet
Browse files Browse the repository at this point in the history
With commit ce5b1bb ("exec: move cpu_exec_init() calls to
realize functions"), we can now remove all the
remaining cannot_destroy_with_object_finalize_yet as
unsafe references have been moved to cpu_exec_realizefn().
(tested with QOM command provided by commit 4c315c2).

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170414083717.13641-2-lvivier@redhat.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
  • Loading branch information
vivier authored and Markus Armbruster committed Apr 20, 2017
1 parent 359c41a commit 53d6e53
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 39 deletions.
6 changes: 0 additions & 6 deletions hw/arm/allwinner-a10.c
Expand Up @@ -118,12 +118,6 @@ static void aw_a10_class_init(ObjectClass *oc, void *data)
DeviceClass *dc = DEVICE_CLASS(oc);

dc->realize = aw_a10_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
}

static const TypeInfo aw_a10_type_info = {
Expand Down
6 changes: 0 additions & 6 deletions hw/arm/bcm2836.c
Expand Up @@ -160,12 +160,6 @@ static void bcm2836_class_init(ObjectClass *oc, void *data)

dc->props = bcm2836_props;
dc->realize = bcm2836_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
}

static const TypeInfo bcm2836_type_info = {
Expand Down
6 changes: 0 additions & 6 deletions hw/arm/digic.c
Expand Up @@ -101,12 +101,6 @@ static void digic_class_init(ObjectClass *oc, void *data)
DeviceClass *dc = DEVICE_CLASS(oc);

dc->realize = digic_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
}

static const TypeInfo digic_type_info = {
Expand Down
5 changes: 0 additions & 5 deletions hw/arm/fsl-imx25.c
Expand Up @@ -290,11 +290,6 @@ static void fsl_imx25_class_init(ObjectClass *oc, void *data)

dc->realize = fsl_imx25_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
dc->desc = "i.MX25 SOC";
}

Expand Down
5 changes: 0 additions & 5 deletions hw/arm/fsl-imx31.c
Expand Up @@ -262,11 +262,6 @@ static void fsl_imx31_class_init(ObjectClass *oc, void *data)

dc->realize = fsl_imx31_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
dc->desc = "i.MX31 SOC";
}

Expand Down
5 changes: 0 additions & 5 deletions hw/arm/fsl-imx6.c
Expand Up @@ -442,11 +442,6 @@ static void fsl_imx6_class_init(ObjectClass *oc, void *data)

dc->realize = fsl_imx6_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
dc->desc = "i.MX6 SOC";
}

Expand Down
6 changes: 0 additions & 6 deletions hw/arm/xlnx-zynqmp.c
Expand Up @@ -439,12 +439,6 @@ static void xlnx_zynqmp_class_init(ObjectClass *oc, void *data)

dc->props = xlnx_zynqmp_props;
dc->realize = xlnx_zynqmp_realize;

/*
* Reason: creates an ARM CPU, thus use after free(), see
* arm_cpu_class_init()
*/
dc->cannot_destroy_with_object_finalize_yet = true;
}

static const TypeInfo xlnx_zynqmp_type_info = {
Expand Down

0 comments on commit 53d6e53

Please sign in to comment.