projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e776bff
)
sparc: fix qtest
author
Blue Swirl
<blauwirbel@gmail.com>
Thu, 19 Apr 2012 18:33:05 +0000
(18:33 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Thu, 19 Apr 2012 18:52:48 +0000
(18:52 +0000)
Initialize TCG only when enabled.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/cpu.c
patch
|
blob
|
history
diff --git
a/target-sparc/cpu.c
b/target-sparc/cpu.c
index 24f90f1dedff629aae07a1f4a4f25dd98b8c31ee..7ac6bdb05820358c3912f8878db1c06de0d81ac4 100644
(file)
--- a/
target-sparc/cpu.c
+++ b/
target-sparc/cpu.c
@@
-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));