target-arm/helper.c: Don't allocate TCG resources unless TCG enabled

Don't call arm_translate_init() (which allocates TCG resources)
unless TCG is enabled.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
Peter Maydell authored and Andrzej Zaborowski committed 2011-12-05 21:38:47 +01:00
1 parent 02afbf6475
commit f4fc247b0d
1 file changed
+1 -1
+1 -1
View File
@@ -390,7 +390,7 @@ CPUARMState *cpu_arm_init(const char *cpu_model)
return NULL;
env = g_malloc0(sizeof(CPUARMState));
cpu_exec_init(env);
if (!inited) {
if (tcg_enabled() && !inited) {
inited = 1;
arm_translate_init();
}