aboutsummaryrefslogtreecommitdiff
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)
downloadqemu-78ce64f492498050083e46cdd7e6cbae6435843c.zip
qemu-78ce64f492498050083e46cdd7e6cbae6435843c.tar.gz
qemu-78ce64f492498050083e46cdd7e6cbae6435843c.tar.bz2
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 18895da..09d6172 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)