target-lm32: init tcg only if available
PATCH 1/1 target-lm32: init tcg only if available
Once qtest support for target-lm32 arrives, tcg may be disabled.
Signed-off-by Michael Walle <[email protected]>
--- target-lm32/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
target-lm32/helper.c +1 -1
@@ -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