diff mbox

tcg: fix x86 compilation with !CONFIG_TCG

Message ID 20171026081819.28032-1-quintela@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Juan Quintela Oct. 26, 2017, 8:18 a.m. UTC
This commit:

commit 55c3ceef61fcf06fc98ddc752b7cce788ce7680b
Author: Richard Henderson <richard.henderson@linaro.org>
Date:   Sun Oct 15 19:02:42 2017 -0700

    qom: Introduce CPUClass.tcg_initialize

Brocke compilation without CONFIG_TCG

Signed-off-by: Juan Quintela <quintela@redhat.com>
CC: Richard Henderson <richard.henderson@linaro.org>
---
 target/i386/cpu.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Richard Henderson Oct. 26, 2017, 9:52 a.m. UTC | #1
On 10/26/2017 10:18 AM, Juan Quintela wrote:
> This commit:
> 
> commit 55c3ceef61fcf06fc98ddc752b7cce788ce7680b
> Author: Richard Henderson <richard.henderson@linaro.org>
> Date:   Sun Oct 15 19:02:42 2017 -0700
> 
>     qom: Introduce CPUClass.tcg_initialize
> 
> Brocke compilation without CONFIG_TCG
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> CC: Richard Henderson <richard.henderson@linaro.org>
> ---
>  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,

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~
diff mbox

Patch

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 53ec94ac9b..100a55688f 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -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;
 }