aboutsummaryrefslogtreecommitdiff
path: root/hw/mcf5208.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/mcf5208.c')
-rw-r--r--hw/mcf5208.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/hw/mcf5208.c b/hw/mcf5208.c
index 50d7f4fd83..21b2bc8a4c 100644
--- a/hw/mcf5208.c
+++ b/hw/mcf5208.c
@@ -286,8 +286,15 @@ static void mcf5208evb_init(ram_addr_t ram_size,
env->pc = entry;
}
-QEMUMachine mcf5208evb_machine = {
+static QEMUMachine mcf5208evb_machine = {
.name = "mcf5208evb",
.desc = "MCF5206EVB",
.init = mcf5208evb_init,
};
+
+static void mcf5208evb_machine_init(void)
+{
+ qemu_register_machine(&mcf5208evb_machine);
+}
+
+machine_init(mcf5208evb_machine_init);