[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/8] ppc: QOMify g3beige machine
From: |
Mark Cave-Ayland |
Subject: |
[Qemu-devel] [PATCH 1/8] ppc: QOMify g3beige machine |
Date: |
Sun, 17 Sep 2017 18:15:41 +0100 |
Signed-off-by: Mark Cave-Ayland <address@hidden>
---
hw/ppc/mac_oldworld.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c
index fcac399..5d1171d 100644
--- a/hw/ppc/mac_oldworld.c
+++ b/hw/ppc/mac_oldworld.c
@@ -380,8 +380,10 @@ static int heathrow_kvm_type(const char *arg)
return 2;
}
-static void heathrow_machine_init(MachineClass *mc)
+static void heathrow_class_init(ObjectClass *oc, void *data)
{
+ MachineClass *mc = MACHINE_CLASS(oc);
+
mc->desc = "Heathrow based PowerMAC";
mc->init = ppc_heathrow_init;
mc->block_default_type = IF_IDE;
@@ -394,4 +396,15 @@ static void heathrow_machine_init(MachineClass *mc)
mc->kvm_type = heathrow_kvm_type;
}
-DEFINE_MACHINE("g3beige", heathrow_machine_init)
+static const TypeInfo ppc_heathrow_machine_info = {
+ .name = MACHINE_TYPE_NAME("g3beige"),
+ .parent = TYPE_MACHINE,
+ .class_init = heathrow_class_init
+};
+
+static void ppc_heathrow_register_types(void)
+{
+ type_register_static(&ppc_heathrow_machine_info);
+}
+
+type_init(ppc_heathrow_register_types);
--
1.7.10.4
- [Qemu-devel] [PATCH 0/8] ppc: more Mac-related fixups, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 7/8] openpic: add missing timer fields to vmstate_openpic_timer, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 5/8] ppc/mac: More rework of the DBDMA emulation, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 4/8] macio: convert pmac_ide_ops from old_mmio, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 1/8] ppc: QOMify g3beige machine,
Mark Cave-Ayland <=
- [Qemu-devel] [PATCH 3/8] ppc/ide/macio: Add missing registers, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 2/8] ppc/mac: Advertise a high clock frequency for NewWorld Macs, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 6/8] ppc: Fix OpenPIC model, Mark Cave-Ayland, 2017/09/17
- [Qemu-devel] [PATCH 8/8] openpic: Fix problem when IRQ transitions from edge to level, Mark Cave-Ayland, 2017/09/17