From: Philippe Mathieu-Daudé Date: Tue, 12 Dec 2023 11:36:40 +0000 (+0100) Subject: target: Restrict 'sysemu/reset.h' to system emulation X-Git-Tag: v9.0.0-rc0~134^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0f6cd9f670888eed851cd0c06a803077020068c;p=thirdparty%2Fqemu.git target: Restrict 'sysemu/reset.h' to system emulation vCPU "reset" is only possible with system emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Warner Losh Reviewed-by: Song Gao Message-ID: <20231212113640.30287-5-philmd@linaro.org> Reviewed-by: Thomas Huth Reviewed-by: Zhao Liu Signed-off-by: Thomas Huth --- diff --git a/target/i386/cpu.c b/target/i386/cpu.c index cd16cb893da..95d5f16cd5e 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -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" diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index fc075952e63..b26187dfdeb 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -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"