diff options
author | Michael Walle <michael@walle.cc> | 2012-03-31 19:54:05 +0200 |
---|---|---|
committer | Michael Walle <michael@walle.cc> | 2012-03-31 19:56:03 +0200 |
commit | de89fd2b885358e649dc38e293d18eecdb78e1ab (patch) | |
tree | 14f38029a602d9ed3e45964ba209d582d5fe1c53 /target-lm32/helper.c | |
parent | 927b241d66c17501013ccea9f1b56a3d9c7ebb79 (diff) | |
download | qemu-de89fd2b885358e649dc38e293d18eecdb78e1ab.zip qemu-de89fd2b885358e649dc38e293d18eecdb78e1ab.tar.gz qemu-de89fd2b885358e649dc38e293d18eecdb78e1ab.tar.bz2 |
target-lm32: init tcg only if available
Once qtest support for target-lm32 arrives, tcg may be disabled.
Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'target-lm32/helper.c')
-rw-r--r-- | 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 5db8f8d..78076e4 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(); } |