aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/cpu.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-20 01:30:32 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:58 +0100
commitaa7408ec18c3517b2476a3671cd0b7f171241e2d (patch)
tree064adc63ba5210ce9f1687966cde6bdff64f6ad2 /target-sh4/cpu.c
parent2b7ac76729c8253d799a8d3bb9bae76cccb0714e (diff)
target-sh4: Move TCG initialization to SuperHCPU initfn
Add a tcg_enabled() check to suppress it for qtest. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-sh4/cpu.c')
-rw-r--r--target-sh4/cpu.c4
1 files changed, 4 insertions, 0 deletions
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 = {