sim-card
/
qemu
Archived
10
0
Fork 0

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 2011-11-25 19:25:50 +01:00 committed by Andrzej Zaborowski
parent 02afbf6475
commit f4fc247b0d
1 changed files with 1 additions and 1 deletions

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();
}