summaryrefslogtreecommitdiff
path: root/target-mips/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-mips/cpu.c')
-rw-r--r--target-mips/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-mips/cpu.c b/target-mips/cpu.c
index 18895da80e..09d61723c5 100644
--- a/target-mips/cpu.c
+++ b/target-mips/cpu.c
@@ -59,6 +59,10 @@ static void mips_cpu_initfn(Object *obj)
CPUMIPSState *env = &cpu->env;
cpu_exec_init(env);
+
+ if (tcg_enabled()) {
+ mips_tcg_init();
+ }
}
static void mips_cpu_class_init(ObjectClass *c, void *data)