summaryrefslogtreecommitdiffstats
path: root/hw/m68k/an5206.c
diff options
context:
space:
mode:
authorEduardo Habkost2015-09-04 20:37:08 +0200
committerAndreas Färber2015-09-19 16:40:15 +0200
commite264d29de28c5b0be3d063307ce9fb613b427cc3 (patch)
tree5e8d9622965ee60421eddbb26dcb42ab8bea7712 /hw/m68k/an5206.c
parentmac_world: Break long line (diff)
downloadqemu-e264d29de28c5b0be3d063307ce9fb613b427cc3.tar.gz
qemu-e264d29de28c5b0be3d063307ce9fb613b427cc3.tar.xz
qemu-e264d29de28c5b0be3d063307ce9fb613b427cc3.zip
Use DEFINE_MACHINE() to register all machines
Convert all machines to use DEFINE_MACHINE() instead of QEMUMachine automatically using a script. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> [AF: Style cleanups, convert imx25_pdk machine] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/m68k/an5206.c')
-rw-r--r--hw/m68k/an5206.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/hw/m68k/an5206.c b/hw/m68k/an5206.c
index b18dc7f7ea..aa49cd5c42 100644
--- a/hw/m68k/an5206.c
+++ b/hw/m68k/an5206.c
@@ -89,15 +89,10 @@ static void an5206_init(MachineState *machine)
env->pc = entry;
}
-static QEMUMachine an5206_machine = {
- .name = "an5206",
- .desc = "Arnewsh 5206",
- .init = an5206_init,
-};
-
-static void an5206_machine_init(void)
+static void an5206_machine_init(MachineClass *mc)
{
- qemu_register_machine(&an5206_machine);
+ mc->desc = "Arnewsh 5206";
+ mc->init = an5206_init;
}
-machine_init(an5206_machine_init);
+DEFINE_MACHINE("an5206", an5206_machine_init)