[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/19] target: Restrict 'sysemu/reset.h' to system emulation
From: |
Thomas Huth |
Subject: |
[PULL 08/19] target: Restrict 'sysemu/reset.h' to system emulation |
Date: |
Wed, 20 Dec 2023 10:40:54 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
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 | 2 +-
target/loongarch/cpu.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index cd16cb893d..95d5f16cd5 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 fc075952e6..b26187dfde 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"
--
2.43.0
- [PULL 04/19] system/qtest: Restrict QTest API to system emulation, (continued)
- [PULL 04/19] system/qtest: Restrict QTest API to system emulation, Thomas Huth, 2023/12/20
- [PULL 01/19] hw: Add compat machines for 9.0, Thomas Huth, 2023/12/20
- [PULL 02/19] MAINTAINERS: Add some more vmware-related files to the corresponding section, Thomas Huth, 2023/12/20
- [PULL 03/19] system/qtest: Include missing 'hw/core/cpu.h' header, Thomas Huth, 2023/12/20
- [PULL 07/19] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header, Thomas Huth, 2023/12/20
- [PULL 05/19] hw/ppc/spapr_hcall: Remove unused 'exec/exec-all.h' included header, Thomas Huth, 2023/12/20
- [PULL 06/19] hw/misc/mips_itu: Remove unnecessary 'exec/exec-all.h' header, Thomas Huth, 2023/12/20
- [PULL 09/19] docs/system/arm: Fix for rename of type "xlnx.bbram-ctrl", Thomas Huth, 2023/12/20
- [PULL 10/19] hw: Replace anti-social QOM type names (again), Thomas Huth, 2023/12/20
- [PULL 11/19] memory: Remove "qemu:" prefix from the "qemu:ram-discard-manager" type name, Thomas Huth, 2023/12/20
- [PULL 08/19] target: Restrict 'sysemu/reset.h' to system emulation,
Thomas Huth <=
- [PULL 12/19] tests/unit/test-io-task: Rename "qemu:dummy" to avoid colon in the name, Thomas Huth, 2023/12/20
- [PULL 14/19] tests/qtest/migration-test: Fix analyze-migration.py for s390x, Thomas Huth, 2023/12/20
- [PULL 15/19] qemu-options: Clarify handling of commas in options parameters, Thomas Huth, 2023/12/20
- [PULL 13/19] qom/object: Limit type names to alphanumerical and some few special characters, Thomas Huth, 2023/12/20
- [PULL 16/19] tests/qtest/npcm7xx_pwm-test: Only do full testing in slow mode, Thomas Huth, 2023/12/20
- [PULL 18/19] tests/unit/test-qmp-event: Simplify event emission check, Thomas Huth, 2023/12/20
- [PULL 17/19] tests/unit/test-qmp-event: Drop superfluous mutex, Thomas Huth, 2023/12/20
- [PULL 19/19] tests/unit/test-qmp-event: Replace fixture by global variables, Thomas Huth, 2023/12/20
- Re: [PULL 00/19] First batch of misc patches for QEMU 9.0, Stefan Hajnoczi, 2023/12/20