diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-04 15:11:59 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-01-09 14:42:40 +0000 |
commit | f503bc4b6b38d1840d41922875fffc88d67dd17a (patch) | |
tree | 1f4883301f73f07f998e4ccde1dec8071a2902c6 /hw/arm/msf2-som.c | |
parent | 4a04655c6bdeb1043a4b7477f54f76a3d6a3ec59 (diff) |
hw/arm: Add missing QOM parent for v7-M SoCs
QDev objects created with qdev_new() need to manually add
their parent relationship with object_property_add_child().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20240104141159.53883-1-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/msf2-som.c')
-rw-r--r-- | hw/arm/msf2-som.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/msf2-som.c b/hw/arm/msf2-som.c index eb74b23797..a269cf044b 100644 --- a/hw/arm/msf2-som.c +++ b/hw/arm/msf2-som.c @@ -60,6 +60,7 @@ static void emcraft_sf2_s2s010_init(MachineState *machine) memory_region_add_subregion(sysmem, DDR_BASE_ADDRESS, ddr); dev = qdev_new(TYPE_MSF2_SOC); + object_property_add_child(OBJECT(machine), "soc", OBJECT(dev)); qdev_prop_set_string(dev, "part-name", "M2S010"); qdev_prop_set_string(dev, "cpu-type", mc->default_cpu_type); |