From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, alex.bennee@linaro.org,
"Paolo Bonzini" <pbonzini@redhat.com>,
anjo@rev.ng, "Philippe Mathieu-Daudé" <philmd@linaro.org>,
kvm@vger.kernel.org
Subject: Re: [PATCH v3 30/33] target/arm/ptw: remove TARGET_AARCH64 from arm_casq_ptw
Date: Sat, 3 May 2025 15:38:56 -0700 [thread overview]
Message-ID: <ab094518-f0a3-4b2f-8c13-ec77b4b2e9e2@linaro.org> (raw)
In-Reply-To: <a6fdb501-438e-4591-b166-87c8dbd14887@linaro.org>
On 5/1/25 9:24 AM, Richard Henderson wrote:
> On 4/30/25 23:23, Pierrick Bouvier wrote:
>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
>> ---
>> target/arm/ptw.c | 13 ++++++++-----
>> 1 file changed, 8 insertions(+), 5 deletions(-)
>>
>> diff --git a/target/arm/ptw.c b/target/arm/ptw.c
>> index 424d1b54275..f428c9b9267 100644
>> --- a/target/arm/ptw.c
>> +++ b/target/arm/ptw.c
>> @@ -737,7 +737,14 @@ static uint64_t arm_casq_ptw(CPUARMState *env, uint64_t old_val,
>> uint64_t new_val, S1Translate *ptw,
>> ARMMMUFaultInfo *fi)
>> {
>> -#if defined(TARGET_AARCH64) && defined(CONFIG_TCG)
>> +#ifndef CONFIG_TCG
>> + /* non-TCG guests only use debug-mode. */
>> + g_assert_not_reached();
>> +#endif
>> +
>> + /* AArch32 does not have FEAT_HADFS */
>> + g_assert(arm_feature(env, ARM_FEATURE_AARCH64));
>> +
>
> I don't think we need an assert here.
>
> The ifdef for aarch64 also protects the qatomic_cmpxchg__nocheck below, because aarch64
> guest can only be built with a 64-bit host.
>
> Are we still able to build qemu-system-arm on a 32-bit host with these changes? It may be
> tricky to check, because the two easiest 32-bit hosts (i686, armv7) also happen to have a
> 64-bit cmpxchg. I think "make docker-test-build@debian-mipsel-cross" will be the right test.
>
Good catch.
I was indeed building only with i686. I'll add mipsel instead.
/usr/lib/gcc-cross/mipsel-linux-gnu/12/../../../../mipsel-linux-gnu/bin/ld:
libtarget_system_arm.a.p/target_arm_ptw.c.o: undefined reference to
symbol '__atomic_compare_exchange_8@@LIBATOMIC_1.0'
> If that fails, I think you could s/TARGET_AARCH64/CONFIG_ATOMIC64/ here.
>
I'll revert this change and simply do this replace, adding a comment as
well.
>
> r~
next prev parent reply other threads:[~2025-05-03 22:39 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 6:23 [PATCH v3 00/33] single-binary: compile target/arm twice Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 01/33] target/arm: Replace target_ulong -> uint64_t for HWBreakpoint Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 02/33] include/system/hvf: missing vaddr include Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 03/33] meson: add common libs for target and target_system Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 04/33] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 05/33] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 06/33] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c Pierrick Bouvier
2025-05-01 19:04 ` Philippe Mathieu-Daudé
2025-05-03 21:12 ` Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 07/33] accel/hvf: add hvf_enabled() for common code Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 08/33] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 09/33] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Pierrick Bouvier
2025-05-01 19:06 ` Philippe Mathieu-Daudé
2025-05-03 21:18 ` Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 10/33] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features Pierrick Bouvier
2025-05-01 19:06 ` Philippe Mathieu-Daudé
2025-05-01 6:23 ` [PATCH v3 11/33] target/arm/cpu: compile file twice (user, system) only Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 12/33] target/arm/cpu32-stubs.c: compile file twice (user, system) Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 13/33] target/arm/helper: use i64 for exception_pc_alignment Pierrick Bouvier
2025-05-01 15:02 ` Richard Henderson
2025-05-01 16:30 ` Richard Henderson
2025-05-03 21:54 ` Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 14/33] target/arm/helper: user i64 for probe_access Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 15/33] target/arm/helper: extract common helpers Pierrick Bouvier
2025-05-01 15:06 ` Richard Henderson
2025-05-01 15:24 ` Pierrick Bouvier
2025-05-03 22:11 ` Pierrick Bouvier
2025-05-01 15:07 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 16/33] target/arm/debug_helper: only include " Pierrick Bouvier
2025-05-01 15:07 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 17/33] target/arm/debug_helper: remove target_ulong Pierrick Bouvier
2025-05-01 15:07 ` Richard Henderson
2025-05-01 19:28 ` Philippe Mathieu-Daudé
2025-05-03 22:16 ` Pierrick Bouvier
2025-05-01 19:26 ` Philippe Mathieu-Daudé
2025-05-01 6:23 ` [PATCH v3 18/33] target/arm/debug_helper: compile file twice (user, system) Pierrick Bouvier
2025-05-01 15:14 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 19/33] target/arm/helper: restrict include to common helpers Pierrick Bouvier
2025-05-01 15:15 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 20/33] target/arm/helper: replace target_ulong by vaddr Pierrick Bouvier
2025-05-01 15:15 ` Richard Henderson
2025-05-01 19:28 ` Philippe Mathieu-Daudé
2025-05-03 22:20 ` Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 21/33] target/arm/helper: expose aarch64 cpu registration Pierrick Bouvier
2025-05-01 15:17 ` Richard Henderson
2025-05-01 19:29 ` Philippe Mathieu-Daudé
2025-05-01 6:23 ` [PATCH v3 22/33] target/arm/helper: remove remaining TARGET_AARCH64 Pierrick Bouvier
2025-05-01 15:19 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 23/33] target/arm/helper: compile file twice (user, system) Pierrick Bouvier
2025-05-01 15:19 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 24/33] target/arm/vfp_fpscr: " Pierrick Bouvier
2025-05-01 15:22 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 25/33] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Pierrick Bouvier
2025-05-01 15:23 ` Richard Henderson
2025-05-01 19:30 ` Philippe Mathieu-Daudé
2025-05-03 22:26 ` Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 26/33] target/arm/arch_dump: compile file once (system) Pierrick Bouvier
2025-05-01 15:23 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 27/33] target/arm/arm-powerctl: " Pierrick Bouvier
2025-05-01 15:24 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 28/33] target/arm/cortex-regs: " Pierrick Bouvier
2025-05-01 15:30 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 29/33] target/arm/ptw: replace target_ulong with uint64_t Pierrick Bouvier
2025-05-01 15:32 ` Richard Henderson
2025-05-01 19:35 ` Philippe Mathieu-Daudé
2025-05-01 21:14 ` Richard Henderson
2025-05-03 22:35 ` Pierrick Bouvier
2025-05-01 6:23 ` [PATCH v3 30/33] target/arm/ptw: remove TARGET_AARCH64 from arm_casq_ptw Pierrick Bouvier
2025-05-01 16:24 ` Richard Henderson
2025-05-03 22:38 ` Pierrick Bouvier [this message]
2025-05-03 22:48 ` Pierrick Bouvier
2025-05-04 15:52 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 31/33] target/arm/ptw: compile file once (system) Pierrick Bouvier
2025-05-01 16:24 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 32/33] target/arm/meson: accelerator files are not needed in user mode Pierrick Bouvier
2025-05-01 16:24 ` Richard Henderson
2025-05-01 6:23 ` [PATCH v3 33/33] target/arm/kvm-stub: compile file once (system) Pierrick Bouvier
2025-05-01 16:25 ` Richard Henderson
2025-05-01 19:36 ` Philippe Mathieu-Daudé
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=ab094518-f0a3-4b2f-8c13-ec77b4b2e9e2@linaro.org \
--to=pierrick.bouvier@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=anjo@rev.ng \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.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).