Skip to contentSkip to conversation

target-lm32: init tcg only if available

PATCH New Michael Walle 1 participant 1 message Jan 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-lm32: init tcg only if available

Once qtest support for target-lm32 arrives, tcg may be disabled.

---
 target-lm32/helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-lm32/helper.c +1 -1
index fc0b444..d6f38bf 100644
@@ -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();
     }
Signature · 1 line
1.7.2.5