summaryrefslogtreecommitdiff
path: root/target-mips/translate.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/translate.c
parentcd0c24f9095b1f825210bb9d9f99532c78668074 (diff)
downloadqemu-78ce64f492498050083e46cdd7e6cbae6435843c.zip
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/translate.c')
-rw-r--r--target-mips/translate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index d7f650e0bf..4ee9615fda 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -15836,7 +15836,7 @@ void cpu_dump_state (CPUMIPSState *env, FILE *f, fprintf_function cpu_fprintf,
#endif
}
-static void mips_tcg_init(void)
+void mips_tcg_init(void)
{
int i;
static int inited;
@@ -15915,7 +15915,6 @@ MIPSCPU *cpu_mips_init(const char *cpu_model)
#endif
fpu_init(env, def);
mvp_init(env, def);
- mips_tcg_init();
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);