[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 1/9] hw/arm/exynos: Add missing QOM parent for CPU cores
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 1/9] hw/arm/exynos: Add missing QOM parent for CPU cores |
Date: |
Mon, 29 Jan 2024 16:18:20 +0100 |
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: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
---
hw/arm/exynos4210.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/arm/exynos4210.c b/hw/arm/exynos4210.c
index 6c428d8eeb..57c77b140c 100644
--- a/hw/arm/exynos4210.c
+++ b/hw/arm/exynos4210.c
@@ -556,6 +556,7 @@ static void exynos4210_realize(DeviceState *socdev, Error
**errp)
for (n = 0; n < EXYNOS4210_NCPUS; n++) {
Object *cpuobj = object_new(ARM_CPU_TYPE_NAME("cortex-a9"));
+ object_property_add_child(OBJECT(s), "cpu[*]", cpuobj);
/* By default A9 CPUs have EL3 enabled. This board does not currently
* support EL3 so the CPU EL3 property is disabled before realization.
*/
--
2.41.0
- [PATCH v3 0/9] hw/arm: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 1/9] hw/arm/exynos: Add missing QOM parent for CPU cores,
Philippe Mathieu-Daudé <=
- [PATCH v3 2/9] hw/arm/exynos: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 3/9] hw/arm/highbank: Add missing QOM parent for CPU cores, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 4/9] hw/arm/highbank: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 5/9] hw/arm/msf2: Simplify setting MachineClass::valid_cpu_types[], Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 6/9] hw/arm/musca: Simplify setting MachineClass::valid_cpu_types[], Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 7/9] hw/arm/npcm7xx_boards: Simplify setting MachineClass::valid_cpu_types[], Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 8/9] hw/arm/vexpress: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 9/9] hw/arm/zynq: Check for CPU types in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/29