[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/5] hw/ppc/e500: QOM-attach CPUs to the machine container
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 3/5] hw/ppc/e500: QOM-attach CPUs to the machine container |
Date: |
Mon, 30 Oct 2023 15:39:54 +0100 |
Instead of having CPUs dangling in the /unattached/device
bucket, attach them to the machine container.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/ppc/e500.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index e04114fb3c..f8177c0280 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -946,6 +946,7 @@ void ppce500_init(MachineState *machine)
exit(1);
}
+ object_property_add_child(OBJECT(machine), "cpu[*]", OBJECT(cs));
/*
* Secondary CPU starts in halted state for now. Needs to change
* when implementing non-kernel boot.
--
2.41.0
- [RFC PATCH 0/5] hw/ppc/e500: Pass array of CPUs as array of canonical QOM paths, Philippe Mathieu-Daudé, 2023/10/30
- [PATCH 1/5] qdev: Add qdev_prop_set_array(), Philippe Mathieu-Daudé, 2023/10/30
- [PATCH 2/5] hw/ppc/e500: Declare CPU QOM types using DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2023/10/30
- [PATCH 3/5] hw/ppc/e500: QOM-attach CPUs to the machine container,
Philippe Mathieu-Daudé <=
- [PATCH 4/5] hw/ppc/e500: Inline sysbus_create_simple(E500_SPIN), Philippe Mathieu-Daudé, 2023/10/30
- [RFC PATCH 5/5] hw/ppc/e500: Pass array of CPUs as array of canonical QOM paths, Philippe Mathieu-Daudé, 2023/10/30
- Re: [RFC PATCH 0/5] hw/ppc/e500: Pass array of CPUs as array of canonical QOM paths, Daniel Henrique Barboza, 2023/10/31