From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: [PULL 14/24] semihosting/arm-compat-semi: compile once in system and per target for user mode
Date: Fri, 26 Sep 2025 14:17:33 +0100 [thread overview]
Message-ID: <20250926131744.432185-15-alex.bennee@linaro.org> (raw)
In-Reply-To: <20250926131744.432185-1-alex.bennee@linaro.org>
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
We don't have any target dependency left in system mode, so we can
compile once.
User mode depends on qemu.h, which is duplicated between linux and bsd,
so we can't easily compile it once.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20250822150058.18692-13-pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250922093711.2768983-16-alex.bennee@linaro.org>
diff --git a/semihosting/meson.build b/semihosting/meson.build
index bb0db323937..99f10e2e2bb 100644
--- a/semihosting/meson.build
+++ b/semihosting/meson.build
@@ -12,9 +12,10 @@ system_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
'stubs-system.c',
))
system_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING',
+ if_true: files('arm-compat-semi.c'),
if_false: files('arm-compat-semi-stub.c'))
specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_USER_ONLY'],
if_true: files('syscalls.c'))
-specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
+specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING', 'CONFIG_USER_ONLY'],
if_true: files('arm-compat-semi.c'))
--
2.47.3
next prev parent reply other threads:[~2025-09-26 13:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-26 13:17 [PULL 00/24] maintainer updates (scripts, semihosting, plugins) Alex Bennée
2025-09-26 13:17 ` [PULL 01/24] scripts/ci: add gitlab-failure-analysis script Alex Bennée
2025-09-26 13:17 ` [PULL 02/24] checkpatch: Ignore removed lines in license check Alex Bennée
2025-09-26 13:17 ` [PULL 03/24] semihosting/syscalls: compile once in system and per target for user mode Alex Bennée
2025-09-26 13:17 ` [PULL 04/24] semihosting/syscalls: replace uint64_t with vaddr where appropriate Alex Bennée
2025-09-26 13:17 ` [PULL 05/24] semihosting/guestfd: compile once for system/user Alex Bennée
2025-09-26 13:17 ` [PULL 06/24] semihosting/arm-compat-semi: change common_semi_sys_exit_extended Alex Bennée
2025-09-26 13:17 ` [PULL 07/24] target/riscv/common-semi-target: remove sizeof(target_ulong) Alex Bennée
2025-09-26 13:17 ` [PULL 08/24] target/{arm, riscv}/common-semi-target: eradicate target_ulong Alex Bennée
2025-09-26 13:17 ` [PULL 09/24] include/semihosting/common-semi: extract common_semi API Alex Bennée
2025-09-26 13:17 ` [PULL 10/24] semihosting/arm-compat-semi: eradicate sizeof(target_ulong) Alex Bennée
2025-09-26 13:17 ` [PULL 11/24] semihosting/arm-compat-semi: replace target_ulong Alex Bennée
2025-09-26 13:17 ` [PULL 12/24] semihosting/arm-compat-semi: eradicate target_long Alex Bennée
2025-09-26 13:17 ` [PULL 13/24] semihosting/arm-compat-semi: remove dependency on cpu.h Alex Bennée
2025-09-26 13:17 ` Alex Bennée [this message]
2025-09-26 13:17 ` [PULL 15/24] contrib/plugins/execlog: Explicitly check for qemu_plugin_read_register() failure Alex Bennée
2025-09-26 13:17 ` [PULL 16/24] contrib/plugins/uftrace: skeleton file Alex Bennée
2025-09-26 13:17 ` [PULL 17/24] contrib/plugins/uftrace: define cpu operations and implement aarch64 Alex Bennée
2025-09-26 13:17 ` [PULL 18/24] contrib/plugins/uftrace: track callstack Alex Bennée
2025-09-26 13:17 ` [PULL 19/24] contrib/plugins/uftrace: implement tracing Alex Bennée
2025-09-26 13:17 ` [PULL 20/24] contrib/plugins/uftrace: implement privilege level tracing Alex Bennée
2025-09-26 13:17 ` [PULL 21/24] contrib/plugins/uftrace: generate additional files for uftrace Alex Bennée
2025-09-26 13:17 ` [PULL 22/24] contrib/plugins/uftrace: implement x64 support Alex Bennée
2025-09-26 13:17 ` [PULL 23/24] contrib/plugins/uftrace_symbols.py Alex Bennée
2025-09-26 13:17 ` [PULL 24/24] contrib/plugins/uftrace: add documentation Alex Bennée
2025-09-27 15:42 ` [PULL 00/24] maintainer updates (scripts, semihosting, plugins) Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250926131744.432185-15-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).