Received: from eggs.gnu.org ([140.186.70.92]:35326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnIB1-00058W-GB for qemu-devel@nongnu.org; Tue, 17 Jan 2012 18:10:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnIB0-0006D2-Du for qemu-devel@nongnu.org; Tue, 17 Jan 2012 18:10:51 -0500 Received: from mail.serverraum.org ([78.47.150.89]:42555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnIB0-0006Cj-9G for qemu-devel@nongnu.org; Tue, 17 Jan 2012 18:10:50 -0500 From: Michael Walle Date: Wed, 18 Jan 2012 00:10:44 +0100 Message-Id: <1326841844-14726-1-git-send-email-michael@walle.cc> Subject: [Qemu-devel] [PATCH] target-lm32: init tcg only if available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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(); } -- 1.7.2.5