summary refs log tree commit diff stats
path: root/semihosting/stubs-system.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-03-12 17:16:05 -0700
committerRichard Henderson <richard.henderson@linaro.org>2025-04-23 14:08:32 -0700
commitd0b4cfa62937ce59bd88de5928ada687329be194 (patch)
tree040a995ef039dc4e5c4247e5e31f6141abdd20c1 /semihosting/stubs-system.c
parent690793e005e004f749aa963ea0040f18e067c98e (diff)
downloadfocaccia-qemu-d0b4cfa62937ce59bd88de5928ada687329be194.tar.gz
focaccia-qemu-d0b4cfa62937ce59bd88de5928ada687329be194.zip
semihosting: Move user-only implementation out-of-line
Avoid testing CONFIG_USER_ONLY in semihost.h.
The only function that's required is semihosting_enabled.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'semihosting/stubs-system.c')
-rw-r--r--semihosting/stubs-system.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/semihosting/stubs-system.c b/semihosting/stubs-system.c
index f26cbb7c25..989789f373 100644
--- a/semihosting/stubs-system.c
+++ b/semihosting/stubs-system.c
@@ -22,12 +22,6 @@ QemuOptsList qemu_semihosting_config_opts = {
     },
 };
 
-/* Queries to config status default to off */
-bool semihosting_enabled(bool is_user)
-{
-    return false;
-}
-
 /*
  * All the rest are empty subs. We could g_assert_not_reached() but
  * that adds extra weight to the final binary. Waste not want not.