[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 23/49] target/arm/helper: remove remaining TARGET_AARCH64
From: |
Pierrick Bouvier |
Subject: |
[PATCH v7 23/49] target/arm/helper: remove remaining TARGET_AARCH64 |
Date: |
Wed, 7 May 2025 16:42:14 -0700 |
They were hiding aarch64_sve_narrow_vq and aarch64_sve_change_el, which
we can expose safely.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
target/arm/helper.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/target/arm/helper.c b/target/arm/helper.c
index 18ac8192331..e3ca4f5187d 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -29,6 +29,7 @@
#include "qemu/guest-random.h"
#ifdef CONFIG_TCG
#include "accel/tcg/probe.h"
+#include "accel/tcg/getpc.h"
#include "semihosting/common-semi.h"
#endif
#include "cpregs.h"
@@ -6565,9 +6566,7 @@ static void zcr_write(CPUARMState *env, const
ARMCPRegInfo *ri,
*/
new_len = sve_vqm1_for_el(env, cur_el);
if (new_len < old_len) {
-#ifdef TARGET_AARCH64
aarch64_sve_narrow_vq(env, new_len + 1);
-#endif
}
}
@@ -10625,9 +10624,7 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs)
* Note that new_el can never be 0. If cur_el is 0, then
* el0_a64 is is_a64(), else el0_a64 is ignored.
*/
-#ifdef TARGET_AARCH64
aarch64_sve_change_el(env, cur_el, new_el, is_a64(env));
-#endif
}
if (cur_el < new_el) {
@@ -11418,7 +11415,6 @@ ARMMMUIdx arm_mmu_idx(CPUARMState *env)
return arm_mmu_idx_el(env, arm_current_el(env));
}
-#ifdef TARGET_AARCH64
/*
* The manual says that when SVE is enabled and VQ is widened the
* implementation is allowed to zero the previously inaccessible
@@ -11530,12 +11526,9 @@ void aarch64_sve_change_el(CPUARMState *env, int
old_el,
/* When changing vector length, clear inaccessible state. */
if (new_len < old_len) {
-#ifdef TARGET_AARCH64
aarch64_sve_narrow_vq(env, new_len + 1);
-#endif
}
}
-#endif
#ifndef CONFIG_USER_ONLY
ARMSecuritySpace arm_security_space(CPUARMState *env)
--
2.47.2
- [PATCH v7 05/49] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub, (continued)
- [PATCH v7 05/49] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub, Pierrick Bouvier, 2025/05/07
- [PATCH v7 09/49] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common, Pierrick Bouvier, 2025/05/07
- [PATCH v7 04/49] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h, Pierrick Bouvier, 2025/05/07
- [PATCH v7 15/49] target/arm/helper: use vaddr instead of target_ulong for probe_access, Pierrick Bouvier, 2025/05/07
- [PATCH v7 22/49] target/arm/helper: expose aarch64 cpu registration, Pierrick Bouvier, 2025/05/07
- [PATCH v7 12/49] target/arm/cpu32-stubs.c: compile file twice (user, system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 18/49] target/arm/debug_helper: remove target_ulong, Pierrick Bouvier, 2025/05/07
- [PATCH v7 19/49] target/arm/debug_helper: compile file twice (user, system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 21/49] target/arm/helper: replace target_ulong by vaddr, Pierrick Bouvier, 2025/05/07
- [PATCH v7 16/49] target/arm/helper: extract common helpers, Pierrick Bouvier, 2025/05/07
- [PATCH v7 23/49] target/arm/helper: remove remaining TARGET_AARCH64,
Pierrick Bouvier <=
- [PATCH v7 24/49] target/arm/helper: compile file twice (user, system), Pierrick Bouvier, 2025/05/07
- [PATCH v7 10/49] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features, Pierrick Bouvier, 2025/05/07
- [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