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:
parent
02afbf6475
commit
f4fc247b0d
|
@ -390,7 +390,7 @@ CPUARMState *cpu_arm_init(const char *cpu_model)
|
||||||
return NULL;
|
return NULL;
|
||||||
env = g_malloc0(sizeof(CPUARMState));
|
env = g_malloc0(sizeof(CPUARMState));
|
||||||
cpu_exec_init(env);
|
cpu_exec_init(env);
|
||||||
if (!inited) {
|
if (tcg_enabled() && !inited) {
|
||||||
inited = 1;
|
inited = 1;
|
||||||
arm_translate_init();
|
arm_translate_init();
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue