From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: qemu-devel@nongnu.org
Cc: richard.henderson@linaro.org, anjo@rev.ng,
"Peter Maydell" <peter.maydell@linaro.org>,
alex.bennee@linaro.org, kvm@vger.kernel.org,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
qemu-arm@nongnu.org,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>
Subject: [PATCH v6 24/50] target/arm/helper: remove remaining TARGET_AARCH64
Date: Mon, 5 May 2025 16:19:49 -0700 [thread overview]
Message-ID: <20250505232015.130990-25-pierrick.bouvier@linaro.org> (raw)
In-Reply-To: <20250505232015.130990-1-pierrick.bouvier@linaro.org>
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 | 8 --------
1 file changed, 8 deletions(-)
diff --git a/target/arm/helper.c b/target/arm/helper.c
index 7e07ed04a5b..ef9594eec29 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -6565,9 +6565,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 +10623,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) {
@@ -11527,7 +11523,6 @@ void cpu_get_tb_cpu_state(CPUARMState *env, vaddr *pc,
*cs_base = flags.flags2;
}
-#ifdef TARGET_AARCH64
/*
* The manual says that when SVE is enabled and VQ is widened the
* implementation is allowed to zero the previously inaccessible
@@ -11639,12 +11634,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
next prev parent reply other threads:[~2025-05-05 23:27 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-05 23:19 [PATCH v6 00/50] single-binary: compile target/arm twice Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 01/50] target/arm: Replace target_ulong -> vaddr for HWBreakpoint Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 02/50] include/system/hvf: missing vaddr include Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 03/50] meson: add common libs for target and target_system Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 04/50] meson: apply target config for picking files from libsystem and libuser Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 05/50] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 06/50] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 07/50] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 08/50] accel/hvf: add hvf_enabled() for common code Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 09/50] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 10/50] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 11/50] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 12/50] target/arm/cpu: compile file twice (user, system) only Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 13/50] target/arm/cpu32-stubs.c: compile file twice (user, system) Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 14/50] tcg: add vaddr type for helpers Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 15/50] target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 16/50] target/arm/helper: use vaddr instead of target_ulong for probe_access Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 17/50] target/arm/helper: extract common helpers Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 18/50] target/arm/debug_helper: only include " Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 19/50] target/arm/debug_helper: remove target_ulong Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 20/50] target/arm/debug_helper: compile file twice (user, system) Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 21/50] target/arm/helper: restrict include to common helpers Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 22/50] target/arm/helper: replace target_ulong by vaddr Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 23/50] target/arm/helper: expose aarch64 cpu registration Pierrick Bouvier
2025-05-05 23:19 ` Pierrick Bouvier [this message]
2025-05-05 23:19 ` [PATCH v6 25/50] target/arm/helper: compile file twice (user, system) Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 26/50] target/arm/vfp_fpscr: " Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 27/50] target/arm/arch_dump: remove TARGET_AARCH64 conditionals Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 28/50] target/arm/arch_dump: compile file once (system) Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 29/50] target/arm/arm-powerctl: " Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 30/50] target/arm/cortex-regs: " Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 31/50] target/arm/ptw: replace target_ulong with int64_t Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 32/50] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 33/50] target/arm/ptw: compile file once (system) Pierrick Bouvier
2025-05-05 23:19 ` [PATCH v6 34/50] target/arm/meson: accelerator files are not needed in user mode Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 35/50] target/arm/kvm-stub: compile file once (system) Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 36/50] target/arm/machine: reduce migration include to avoid target specific definitions Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 37/50] target/arm/machine: remove TARGET_AARCH64 from migration state Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 38/50] target/arm/machine: move cpu_post_load kvm bits to kvm_arm_cpu_post_load function Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 39/50] target/arm/kvm-stub: add missing stubs Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 40/50] target/arm/machine: compile file once (system) Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 41/50] target/arm/tcg/vec_internal: use forward declaration for CPUARMState Pierrick Bouvier
2025-05-06 14:24 ` Richard Henderson
2025-05-05 23:20 ` [PATCH v6 42/50] target/arm/tcg/crypto_helper: compile file once Pierrick Bouvier
2025-05-06 14:26 ` Richard Henderson
2025-05-05 23:20 ` [PATCH v6 43/50] target/arm/tcg/hflags: compile file twice (system, user) Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 44/50] target/arm/tcg/iwmmxt_helper: " Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 45/50] target/arm/tcg/neon_helper: " Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 46/50] target/arm/tcg/tlb_helper: " Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 47/50] target/arm/helper: restrict define_tlb_insn_regs to system target Pierrick Bouvier
2025-05-06 14:28 ` Richard Henderson
2025-05-05 23:20 ` [PATCH v6 48/50] target/arm/tcg/tlb-insns: compile file once (system) Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 49/50] target/arm/tcg/arith_helper: compile file once Pierrick Bouvier
2025-05-05 23:20 ` [PATCH v6 50/50] target/arm/tcg/vfp_helper: compile file twice (system, user) Pierrick Bouvier
2025-05-06 14:29 ` Richard Henderson
2025-05-05 23:27 ` [PATCH v6 00/50] single-binary: compile target/arm twice 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=20250505232015.130990-25-pierrick.bouvier@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).