From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>,
Pierrick Bouvier <pierrick.bouvier@linaro.org>,
qemu-devel@nongnu.org
Cc: kvm@vger.kernel.org, alex.bennee@linaro.org, anjo@rev.ng,
qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v8 30/48] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw
Date: Tue, 13 May 2025 18:12:15 +0100 [thread overview]
Message-ID: <cb2798a2-e673-427c-a83f-2afbac59751b@linaro.org> (raw)
In-Reply-To: <39c6f5ab-6e45-491d-a0e8-07408e29e2f8@linaro.org>
On 13/5/25 19:03, Richard Henderson wrote:
> On 5/13/25 03:41, Philippe Mathieu-Daudé wrote:
>> On 12/5/25 20:04, Pierrick Bouvier wrote:
>>> This function needs 64 bit compare exchange, so we hide implementation
>>> for hosts not supporting it (some 32 bit target, which don't run 64 bit
>>> guests anyway).
>>>
>>> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
>>> ---
>>> target/arm/ptw.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/target/arm/ptw.c b/target/arm/ptw.c
>>> index 68ec3f5e755..44170d831cc 100644
>>> --- a/target/arm/ptw.c
>>> +++ b/target/arm/ptw.c
>>> @@ -737,7 +737,7 @@ 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)
>>> +#if defined(CONFIG_ATOMIC64) && defined(CONFIG_TCG)
>>> uint64_t cur_val;
>>> void *host = ptw->out_host;
>>
>> I'd feel safer squashing:
>>
>> -- >8 --
>> @@ -743,2 +743,5 @@ static uint64_t arm_casq_ptw(CPUARMState *env,
>> uint64_t old_val,
>>
>> + /* AArch32 does not have FEAT_HADFS */
>> + assert(cpu_isar_feature(aa64_hafs, env_archcpu(env)));
>
> Why? This is checked in the setting of param.{ha,hd}.
> See aa{32,64}_va_parameters.
I suppose the "AArch32 does not have FEAT_HADFS" is misleading then.
Better if no changes are necessary and this series can go as is.
next prev parent reply other threads:[~2025-05-13 17:13 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-12 18:04 [PATCH v8 00/48] single-binary: compile target/arm twice Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 01/48] target/arm: Replace target_ulong -> vaddr for HWBreakpoint Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 02/48] include/system/hvf: missing vaddr include Pierrick Bouvier
2025-05-13 9:58 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 03/48] meson: add common libs for target and target_system Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 04/48] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h Pierrick Bouvier
2025-05-13 9:58 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 05/48] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub Pierrick Bouvier
2025-05-13 10:00 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 06/48] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 07/48] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 08/48] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 09/48] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 10/48] target/arm/cpu: compile file twice (user, system) only Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 11/48] target/arm/cpu32-stubs.c: compile file twice (user, system) Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 12/48] tcg: add vaddr type for helpers Pierrick Bouvier
2025-05-13 10:03 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 13/48] target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment Pierrick Bouvier
2025-05-13 10:03 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 14/48] target/arm/helper: use vaddr instead of target_ulong for probe_access Pierrick Bouvier
2025-05-13 10:04 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 15/48] target/arm/helper: extract common helpers Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 16/48] target/arm/debug_helper: only include " Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 17/48] target/arm/debug_helper: remove target_ulong Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 18/48] target/arm/debug_helper: compile file twice (user, system) Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 19/48] target/arm/helper: restrict include to common helpers Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 20/48] target/arm/helper: replace target_ulong by vaddr Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 21/48] target/arm/helper: expose aarch64 cpu registration Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 22/48] target/arm/helper: remove remaining TARGET_AARCH64 Pierrick Bouvier
2025-05-13 10:06 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 23/48] target/arm/helper: compile file twice (user, system) Pierrick Bouvier
2025-05-13 10:06 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 24/48] target/arm/vfp_fpscr: " Pierrick Bouvier
2025-05-13 10:07 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 25/48] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 26/48] target/arm/arch_dump: compile file once (system) Pierrick Bouvier
2025-05-13 10:07 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 27/48] target/arm/arm-powerctl: " Pierrick Bouvier
2025-05-13 10:07 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 28/48] target/arm/cortex-regs: " Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 29/48] target/arm/ptw: replace target_ulong with int64_t Pierrick Bouvier
2025-05-13 10:09 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 30/48] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw Pierrick Bouvier
2025-05-13 10:41 ` Philippe Mathieu-Daudé
2025-05-13 17:03 ` Richard Henderson
2025-05-13 17:12 ` Philippe Mathieu-Daudé [this message]
2025-05-14 6:12 ` Richard Henderson
2025-05-12 18:04 ` [PATCH v8 31/48] target/arm/ptw: compile file once (system) Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 32/48] target/arm/meson: accelerator files are not needed in user mode Pierrick Bouvier
2025-05-13 10:10 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 33/48] target/arm/kvm-stub: compile file once (system) Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 34/48] target/arm/machine: reduce migration include to avoid target specific definitions Pierrick Bouvier
2025-05-13 10:43 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 35/48] target/arm/machine: remove TARGET_AARCH64 from migration state Pierrick Bouvier
2025-05-13 10:10 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 36/48] target/arm/machine: move cpu_post_load kvm bits to kvm_arm_cpu_post_load function Pierrick Bouvier
2025-05-13 10:45 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 37/48] target/arm/kvm-stub: add missing stubs Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 38/48] target/arm/machine: compile file once (system) Pierrick Bouvier
2025-05-13 10:11 ` Philippe Mathieu-Daudé
2025-05-12 18:04 ` [PATCH v8 39/48] target/arm/tcg/vec_internal: use forward declaration for CPUARMState Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 40/48] target/arm/tcg/crypto_helper: compile file once Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 41/48] target/arm/tcg/hflags: compile file twice (system, user) Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 42/48] target/arm/tcg/iwmmxt_helper: " Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 43/48] target/arm/tcg/neon_helper: " Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 44/48] target/arm/tcg/tlb_helper: " Pierrick Bouvier
2025-05-12 18:04 ` [PATCH v8 45/48] target/arm/helper: restrict define_tlb_insn_regs to system target Pierrick Bouvier
2025-05-12 18:05 ` [PATCH v8 46/48] target/arm/tcg/tlb-insns: compile file once (system) Pierrick Bouvier
2025-05-13 10:12 ` Philippe Mathieu-Daudé
2025-05-12 18:05 ` [PATCH v8 47/48] target/arm/tcg/arith_helper: compile file once Pierrick Bouvier
2025-05-12 18:05 ` [PATCH v8 48/48] target/arm/tcg/vfp_helper: compile file twice (system, user) Pierrick Bouvier
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=cb2798a2-e673-427c-a83f-2afbac59751b@linaro.org \
--to=philmd@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=pierrick.bouvier@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).