summaryrefslogtreecommitdiff
path: root/target-mips/cpu.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-20 01:22:25 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:58 +0100
commit78ce64f492498050083e46cdd7e6cbae6435843c (patch)
tree87b1d67a38dad4e389e4d97a3fa819e365d41b5b /target-mips/cpu.c
parentcd0c24f9095b1f825210bb9d9f99532c78668074 (diff)
target-mips: Move TCG initialization to MIPSCPU initfn
Make mips_tcg_init() non-static and add tcg_enabled() check to suppress it for qtest. Signed-off-by: Andreas Färber <afaerber@suse.de>
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)