sparc: fix qtest
Initialize TCG only when enabled. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
e776bffb53
commit
90449c3887
@ -119,7 +119,9 @@ CPUSPARCState *cpu_sparc_init(const char *cpu_model)
|
||||
cpu = SPARC_CPU(object_new(TYPE_SPARC_CPU));
|
||||
env = &cpu->env;
|
||||
|
||||
if (tcg_enabled()) {
|
||||
gen_intermediate_code_init(env);
|
||||
}
|
||||
|
||||
if (cpu_sparc_register(env, cpu_model) < 0) {
|
||||
object_delete(OBJECT(cpu));
|
||||
|
Loading…
Reference in New Issue
Block a user