mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
927b241d66
commit
de89fd2b88
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ CPULM32State *cpu_lm32_init(const char *cpu_model)
|
||||||
cpu_state_reset(env);
|
cpu_state_reset(env);
|
||||||
qemu_init_vcpu(env);
|
qemu_init_vcpu(env);
|
||||||
|
|
||||||
if (!tcg_initialized) {
|
if (tcg_enabled() && !tcg_initialized) {
|
||||||
tcg_initialized = 1;
|
tcg_initialized = 1;
|
||||||
lm32_translate_init();
|
lm32_translate_init();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue