aboutsummaryrefslogtreecommitdiff
path: root/target/arm/Kconfig
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-04-26 15:00:10 -0300
committerPeter Maydell <peter.maydell@linaro.org>2023-05-02 10:54:32 +0100
commit99f2f2ad9ee440b50fd33468f234d3287f8a2cfd (patch)
tree3ee181891f4be541d7c723dcca498cd6360a73b3 /target/arm/Kconfig
parent43dc139c71255953237520e19ba5ebd259d24aae (diff)
downloadqemu-99f2f2ad9ee440b50fd33468f234d3287f8a2cfd.zip
qemu-99f2f2ad9ee440b50fd33468f234d3287f8a2cfd.tar.gz
qemu-99f2f2ad9ee440b50fd33468f234d3287f8a2cfd.tar.bz2
arm/Kconfig: Always select SEMIHOSTING when TCG is present
We are about to enable the build without TCG, so CONFIG_SEMIHOSTING and CONFIG_ARM_COMPATIBLE_SEMIHOSTING cannot be unconditionally set in default.mak anymore. So reflect the change in a Kconfig. Instead of using semihosting/Kconfig, use a target-specific file, so that the change doesn't affect other architectures which might implement semihosting in a way compatible with KVM. The selection from ARM_v7M needs to be removed to avoid a cycle during parsing. Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230426180013.14814-11-farosas@suse.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/Kconfig')
-rw-r--r--target/arm/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/arm/Kconfig b/target/arm/Kconfig
index 3f3394a..39f05b6 100644
--- a/target/arm/Kconfig
+++ b/target/arm/Kconfig
@@ -4,3 +4,10 @@ config ARM
config AARCH64
bool
select ARM
+
+# This config exists just so we can make SEMIHOSTING default when TCG
+# is selected without also changing it for other architectures.
+config ARM_SEMIHOSTING
+ bool
+ default y if TCG && ARM
+ select ARM_COMPATIBLE_SEMIHOSTING