target/i386/helper: Restrict KVM declarations to system emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 4 Sep 2023 12:43:15 +0000 (14:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Sep 2023 11:32:37 +0000 (13:32 +0200)
User emulation doesn't need any KVM declarations.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904124325.79040-5-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/helper.c

index 89aa696c6d53d68c6bcd52ae4ee7188d58dd3cd4..2070dd0dda1f4c8e740698779cd79a038c42ffe1 100644 (file)
 #include "cpu.h"
 #include "exec/exec-all.h"
 #include "sysemu/runstate.h"
-#include "kvm/kvm_i386.h"
 #ifndef CONFIG_USER_ONLY
 #include "sysemu/hw_accel.h"
 #include "monitor/monitor.h"
+#include "kvm/kvm_i386.h"
 #endif
 #include "qemu/log.h"
 #ifdef CONFIG_TCG