Skip to contentSkip to conversation

tcg: fix x86 compilation with !CONFIG_TCG

PATCH In review Juan Quintela 2 participants 2 messages Oct 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg: fix x86 compilation with !CONFIG_TCG

This commit:

commit 55c3ceef61fcf06fc98ddc752b7cce788ce7680b

Author: Richard Henderson <[email protected]>
Date:   Sun Oct 15 19:02:42 2017 -0700

qom: Introduce CPUClass.tcg_initialize

Brocke compilation without CONFIG_TCG

CC Richard Henderson <[email protected]>
---
 target/i386/cpu.c | 2 ++
 1 file changed, 2 insertions(+)
target/i386/cpu.c +2 -0
index 53ec94ac9b..100a55688f 100644
@@ -4212,7 +4212,9 @@ static void x86_cpu_common_class_init(ObjectClass *oc, void *data)
 #endif
     cc->cpu_exec_enter = x86_cpu_exec_enter;
     cc->cpu_exec_exit = x86_cpu_exec_exit;
+#ifdef CONFIG_TCG
     cc->tcg_initialize = tcg_x86_init;
+#endif 
 
     dc->user_creatable = true;
 }
Signature · 1 line
2.13.6
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Juan Quintela

This commit:

commit 55c3ceef61fcf06fc98ddc752b7cce788ce7680b

Author: Richard Henderson <[email protected]>
Date:   Sun Oct 15 19:02:42 2017 -0700

qom: Introduce CPUClass.tcg_initialize

Quoted 7 lines

Brocke compilation without CONFIG_TCG

CC Richard Henderson <[email protected]>
---
 target/i386/cpu.c | 2 ++
 1 file changed, 2 insertions(+)

Oops. I'm sure the other --disable-tcg hosts are affected as well. But as far as it goes,

r~