From patchwork Tue Jan 17 23:10:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: target-lm32: init tcg only if available Date: Tue, 17 Jan 2012 13:10:44 -0000 From: Michael Walle X-Patchwork-Id: 136540 Message-Id: <1326841844-14726-1-git-send-email-michael@walle.cc> To: qemu-devel@nongnu.org Cc: Michael Walle Once qtest support for target-lm32 arrives, tcg may be disabled. Signed-off-by: Michael Walle --- target-lm32/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-lm32/helper.c b/target-lm32/helper.c index fc0b444..d6f38bf 100644 --- a/target-lm32/helper.c +++ b/target-lm32/helper.c @@ -220,7 +220,7 @@ CPUState *cpu_lm32_init(const char *cpu_model) cpu_reset(env); qemu_init_vcpu(env); - if (!tcg_initialized) { + if (tcg_enabled() && !tcg_initialized) { tcg_initialized = 1; lm32_translate_init(); }