From 1cc896195bae54d7a5f48f9032037d8f6f65abd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 20 Jan 2013 00:48:29 +0100 Subject: target-m68k: Move TCG initialization to M68kCPU initfn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a tcg_enabled() check to suppress it for qtest. Signed-off-by: Andreas Färber --- target-m68k/helper.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'target-m68k/helper.c') diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 3ae6fa0492..6030807753 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -103,7 +103,6 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model) M68kCPU *cpu; CPUM68KState *env; ObjectClass *oc; - static int inited; oc = cpu_class_by_name(TYPE_M68K_CPU, cpu_model); if (oc == NULL) { @@ -111,12 +110,6 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model) } cpu = M68K_CPU(object_new(object_class_get_name(oc))); env = &cpu->env; - - if (!inited) { - inited = 1; - m68k_tcg_init(); - } - env->cpu_model_str = cpu_model; register_m68k_insns(env); -- cgit v1.2.3