aboutsummaryrefslogtreecommitdiff
path: root/target-m68k/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-04-15 01:10:56 +0200
committerAndreas Färber <afaerber@suse.de>2012-04-30 11:32:13 +0200
commit9b7060396e16b0b5a81e21373f27e63bdcacb5bf (patch)
tree4adfcc2d0ec73ec639719311759bec69fa5d0823 /target-m68k/helper.c
parent11c1986817fa8ec515b87291445786734f78e4e0 (diff)
target-m68k: Start QOM'ifying CPU init
Move model-independent code from cpu_m68k_init() into a QOM initfn. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Laurent Vivier <Laurent@Vivier.EU> Tested-by: Laurent Vivier <Laurent@Vivier.EU>
Diffstat (limited to 'target-m68k/helper.c')
-rw-r--r--target-m68k/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index 69fb147526..e850d53d40 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -156,7 +156,7 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model)
cpu = M68K_CPU(object_new(TYPE_M68K_CPU));
env = &cpu->env;
- cpu_exec_init(env);
+
if (!inited) {
inited = 1;
m68k_tcg_init();