diff mbox series

[2/3] target/riscv: Restrict semihosting to TCG

Message ID 20240529155548.5878-3-philmd@linaro.org
State Superseded
Headers show
Series semihosting: Restrict to TCG | expand

Commit Message

Philippe Mathieu-Daudé May 29, 2024, 3:55 p.m. UTC
It is pointless to build semihosting when TCG is not available.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/riscv/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig
index 5f30df22f2..5c360a70a9 100644
--- a/target/riscv/Kconfig
+++ b/target/riscv/Kconfig
@@ -1,9 +1,9 @@ 
 config RISCV32
     bool
-    select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
+    select ARM_COMPATIBLE_SEMIHOSTING if TCG # for do_common_semihosting()
     select DEVICE_TREE # needed by boot.c
 
 config RISCV64
     bool
-    select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
+    select ARM_COMPATIBLE_SEMIHOSTING if TCG # for do_common_semihosting()
     select DEVICE_TREE # needed by boot.c