summary refs log tree commit diff stats
path: root/hw/arm/olimex-stm32-h405.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-04 15:11:59 +0100
committerPeter Maydell <peter.maydell@linaro.org>2024-01-09 14:42:40 +0000
commitf503bc4b6b38d1840d41922875fffc88d67dd17a (patch)
tree1f4883301f73f07f998e4ccde1dec8071a2902c6 /hw/arm/olimex-stm32-h405.c
parent4a04655c6bdeb1043a4b7477f54f76a3d6a3ec59 (diff)
downloadfocaccia-qemu-f503bc4b6b38d1840d41922875fffc88d67dd17a.tar.gz
focaccia-qemu-f503bc4b6b38d1840d41922875fffc88d67dd17a.zip
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/olimex-stm32-h405.c')
-rw-r--r--hw/arm/olimex-stm32-h405.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/olimex-stm32-h405.c b/hw/arm/olimex-stm32-h405.c
index d793de7c97..4ad7b043be 100644
--- a/hw/arm/olimex-stm32-h405.c
+++ b/hw/arm/olimex-stm32-h405.c
@@ -47,6 +47,7 @@ static void olimex_stm32_h405_init(MachineState *machine)
     clock_set_hz(sysclk, SYSCLK_FRQ);
 
     dev = qdev_new(TYPE_STM32F405_SOC);
+    object_property_add_child(OBJECT(machine), "soc", OBJECT(dev));
     qdev_connect_clock_in(dev, "sysclk", sysclk);
     sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);