mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
sparc: fix qtest
Initialize TCG only when enabled. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
+3
-1
@@ -119,7 +119,9 @@ CPUSPARCState *cpu_sparc_init(const char *cpu_model)
|
||||
cpu = SPARC_CPU(object_new(TYPE_SPARC_CPU));
|
||||
env = &cpu->env;
|
||||
|
||||
gen_intermediate_code_init(env);
|
||||
if (tcg_enabled()) {
|
||||
gen_intermediate_code_init(env);
|
||||
}
|
||||
|
||||
if (cpu_sparc_register(env, cpu_model) < 0) {
|
||||
object_delete(OBJECT(cpu));
|
||||
|
||||
Reference in New Issue
Block a user