]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target: Restrict 'sysemu/reset.h' to system emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 12 Dec 2023 11:36:40 +0000 (12:36 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 20 Dec 2023 09:29:23 +0000 (10:29 +0100)
vCPU "reset" is only possible with system emulation.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-ID: <20231212113640.30287-5-philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/i386/cpu.c
target/loongarch/cpu.c

index cd16cb893daf8d2a2be94a91f5ad47de787a6080..95d5f16cd5eb27b11348d6fad8a54bd4907ca16b 100644 (file)
@@ -24,7 +24,6 @@
 #include "qemu/hw-version.h"
 #include "cpu.h"
 #include "tcg/helper-tcg.h"
-#include "sysemu/reset.h"
 #include "sysemu/hvf.h"
 #include "hvf/hvf-i386.h"
 #include "kvm/kvm_i386.h"
@@ -37,6 +36,7 @@
 #include "hw/qdev-properties.h"
 #include "hw/i386/topology.h"
 #ifndef CONFIG_USER_ONLY
+#include "sysemu/reset.h"
 #include "qapi/qapi-commands-machine-target.h"
 #include "exec/address-spaces.h"
 #include "hw/boards.h"
index fc075952e6356060fe46b8530ea1267765d7a867..b26187dfdebb4eb24661bbbbcb02baf5855bf780 100644 (file)
@@ -17,7 +17,9 @@
 #include "internals.h"
 #include "fpu/softfloat-helpers.h"
 #include "cpu-csr.h"
+#ifndef CONFIG_USER_ONLY
 #include "sysemu/reset.h"
+#endif
 #include "tcg/tcg.h"
 #include "vec.h"