summaryrefslogtreecommitdiffstats
path: root/hw/m68k/mcf5208.c
diff options
context:
space:
mode:
authorIgor Mammedov2017-08-24 18:31:34 +0200
committerEduardo Habkost2017-09-01 16:54:24 +0200
commitf47cf4e31cac4e670e26226b549c379c982e223a (patch)
treee68ee0bc9a917dce78b6f6078d4f457c6b098e58 /hw/m68k/mcf5208.c
parenthppa: replace cpu_hppa_init() with cpu_generic_init() (diff)
downloadqemu-f47cf4e31cac4e670e26226b549c379c982e223a.tar.gz
qemu-f47cf4e31cac4e670e26226b549c379c982e223a.tar.xz
qemu-f47cf4e31cac4e670e26226b549c379c982e223a.zip
m68k: replace cpu_m68k_init() with cpu_generic_init()
call register_m68k_insns() at realize time which makes cpu_m68k_init() typical object creation function. As result we can replace it with cpu_generic_init() which does the same job, reducing code duplication a bit. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Thomas Huth <huth@tuxfamily.org> Acked-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <1503592308-93913-12-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/m68k/mcf5208.c')
-rw-r--r--hw/m68k/mcf5208.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
index f4b1387c0d..1a0f18073a 100644
--- a/hw/m68k/mcf5208.c
+++ b/hw/m68k/mcf5208.c
@@ -232,7 +232,7 @@ static void mcf5208evb_init(MachineState *machine)
if (!cpu_model) {
cpu_model = "m5208";
}
- cpu = cpu_m68k_init(cpu_model);
+ cpu = M68K_CPU(cpu_generic_init(TYPE_M68K_CPU, cpu_model));
if (!cpu) {
fprintf(stderr, "Unable to find m68k CPU definition\n");
exit(1);