From: Peter Maydell Date: Fri, 25 Nov 2011 18:25:50 +0000 (+0100) Subject: target-arm/helper.c: Don't allocate TCG resources unless TCG enabled X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f4fc247b0df2dfccae80618ccf6741a9b9e50e49;p=qemu.git 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 Signed-off-by: Andrzej Zaborowski --- diff --git a/target-arm/helper.c b/target-arm/helper.c index 97af4d0bba..3fe5822f61 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -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(); }