]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target/arm: Select SEMIHOSTING when using TCG
authorFabiano Rosas <farosas@suse.de>
Mon, 8 May 2023 18:16:09 +0000 (15:16 -0300)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 May 2023 14:49:20 +0000 (15:49 +0100)
Semihosting has been made a 'default y' entry in Kconfig, which does
not work because when building --without-default-devices, the
semihosting code would not be available.

Make semihosting unconditional when TCG is present.

Fixes: 29d9efca16 ("arm/Kconfig: Do not build TCG-only boards on a KVM-only build")
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230508181611.2621-2-farosas@suse.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/Kconfig

index 39f05b6420a5c7cf2aa1f3dd93cdde92b997a9cb..3fffdcb61b6e87f948b3e3c01b29eed5ce83316f 100644 (file)
@@ -1,13 +1,7 @@
 config ARM
     bool
+    select ARM_COMPATIBLE_SEMIHOSTING if TCG
 
 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