[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 31/49] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC
From: |
Pierrick Bouvier |
Subject: |
[PATCH v7 31/49] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw |
Date: |
Wed, 7 May 2025 16:42:22 -0700 |
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;
--
2.47.2
- [PATCH v7 13/49] tcg: add vaddr type for helpers, (continued)
- [PATCH v7 13/49] tcg: add vaddr type for helpers, Pierrick Bouvier, 2025/05/07
- [PATCH v7 14/49] target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment, Pierrick Bouvier, 2025/05/07
- [PATCH v7 17/49] target/arm/debug_helper: only include common helpers, Pierrick Bouvier, 2025/05/07
- [PATCH v7 20/49] target/arm/helper: restrict include to common helpers, Pierrick Bouvier, 2025/05/07
- [PATCH v7 25/49] target/arm/vfp_fpscr: compile file twice (user, system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 26/49] target/arm/arch_dump: remove TARGET_AARCH64 conditionals, Pierrick Bouvier, 2025/05/07
- [PATCH v7 29/49] target/arm/cortex-regs: compile file once (system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 30/49] target/arm/ptw: replace target_ulong with int64_t, Pierrick Bouvier, 2025/05/07
- [PATCH v7 35/49] target/arm/machine: reduce migration include to avoid target specific definitions, Pierrick Bouvier, 2025/05/07
- [PATCH v7 27/49] target/arm/arch_dump: compile file once (system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 31/49] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw,
Pierrick Bouvier <=
- [PATCH v7 33/49] target/arm/meson: accelerator files are not needed in user mode, Pierrick Bouvier, 2025/05/07
- [PATCH v7 36/49] target/arm/machine: remove TARGET_AARCH64 from migration state, Pierrick Bouvier, 2025/05/07
- [PATCH v7 37/49] target/arm/machine: move cpu_post_load kvm bits to kvm_arm_cpu_post_load function, Pierrick Bouvier, 2025/05/07
- [PATCH v7 38/49] target/arm/kvm-stub: add missing stubs, Pierrick Bouvier, 2025/05/07
- [PATCH v7 32/49] target/arm/ptw: compile file once (system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 28/49] target/arm/arm-powerctl: compile file once (system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 34/49] target/arm/kvm-stub: compile file once (system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 39/49] target/arm/machine: compile file once (system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 41/49] target/arm/tcg/crypto_helper: compile file once, Pierrick Bouvier, 2025/05/07
- [PATCH v7 42/49] target/arm/tcg/hflags: compile file twice (system, user), Pierrick Bouvier, 2025/05/07