From aa7408ec18c3517b2476a3671cd0b7f171241e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 20 Jan 2013 01:30:32 +0100 Subject: target-sh4: Move TCG initialization to SuperHCPU 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-sh4/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target-sh4/cpu.c') diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c index c66442f445..dc5d7568ea 100644 --- a/target-sh4/cpu.c +++ b/target-sh4/cpu.c @@ -73,6 +73,10 @@ static void superh_cpu_initfn(Object *obj) cpu_exec_init(env); env->movcal_backup_tail = &(env->movcal_backup); + + if (tcg_enabled()) { + sh4_translate_init(); + } } static const VMStateDescription vmstate_sh_cpu = { -- cgit v1.2.1