summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-lm32/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-lm32/helper.c b/target-lm32/helper.c
index 5db8f8d60f..78076e4603 100644
--- a/target-lm32/helper.c
+++ b/target-lm32/helper.c
@@ -215,7 +215,7 @@ CPULM32State *cpu_lm32_init(const char *cpu_model)
cpu_state_reset(env);
qemu_init_vcpu(env);
- if (!tcg_initialized) {
+ if (tcg_enabled() && !tcg_initialized) {
tcg_initialized = 1;
lm32_translate_init();
}