[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] hw/ppc/e500: Inline sysbus_create_simple(E500_SPIN)
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 4/5] hw/ppc/e500: Inline sysbus_create_simple(E500_SPIN) |
Date: |
Mon, 30 Oct 2023 15:39:55 +0100 |
In the next commit we'll set properties to the TYPE_E500_SPIN
object. In order to ease next commit review, inline the
sysbus_create_simple() call first.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/ppc/e500.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index f8177c0280..e38f46df38 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -1082,7 +1082,9 @@ void ppce500_init(MachineState *machine)
}
/* Register spinning region */
- sysbus_create_simple("e500-spin", pmc->spin_base, NULL);
+ dev = qdev_new("e500-spin");
+ sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
+ sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, pmc->spin_base);
if (pmc->has_mpc8xxx_gpio) {
qemu_irq poweroff_irq;
--
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é, 2023/10/30
- [PATCH 4/5] hw/ppc/e500: Inline sysbus_create_simple(E500_SPIN),
Philippe Mathieu-Daudé <=
- [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