[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 25/33] target/arm/arch_dump: remove TARGET_AARCH64 conditional
From: |
Pierrick Bouvier |
Subject: |
[PATCH v3 25/33] target/arm/arch_dump: remove TARGET_AARCH64 conditionals |
Date: |
Wed, 30 Apr 2025 23:23:36 -0700 |
Associated code is protected by cpu_isar_feature(aa64*)
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
target/arm/arch_dump.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c
index c40df4e7fd7..1dd79849c13 100644
--- a/target/arm/arch_dump.c
+++ b/target/arm/arch_dump.c
@@ -143,7 +143,6 @@ static int
aarch64_write_elf64_prfpreg(WriteCoreDumpFunction f,
return 0;
}
-#ifdef TARGET_AARCH64
static off_t sve_zreg_offset(uint32_t vq, int n)
{
off_t off = sizeof(struct aarch64_user_sve_header);
@@ -231,7 +230,6 @@ static int aarch64_write_elf64_sve(WriteCoreDumpFunction f,
return 0;
}
-#endif
int arm_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs,
int cpuid, DumpState *s)
@@ -273,11 +271,9 @@ int arm_cpu_write_elf64_note(WriteCoreDumpFunction f,
CPUState *cs,
return ret;
}
-#ifdef TARGET_AARCH64
if (cpu_isar_feature(aa64_sve, cpu)) {
ret = aarch64_write_elf64_sve(f, env, cpuid, s);
}
-#endif
return ret;
}
@@ -451,11 +447,9 @@ ssize_t cpu_get_note_size(int class, int machine, int
nr_cpus)
if (class == ELFCLASS64) {
note_size = AARCH64_PRSTATUS_NOTE_SIZE;
note_size += AARCH64_PRFPREG_NOTE_SIZE;
-#ifdef TARGET_AARCH64
if (cpu_isar_feature(aa64_sve, cpu)) {
note_size += AARCH64_SVE_NOTE_SIZE(&cpu->env);
}
-#endif
} else {
note_size = ARM_PRSTATUS_NOTE_SIZE;
if (cpu_isar_feature(aa32_vfp_simd, cpu)) {
--
2.47.2
- Re: [PATCH v3 13/33] target/arm/helper: use i64 for exception_pc_alignment, (continued)
- [PATCH v3 19/33] target/arm/helper: restrict include to common helpers, Pierrick Bouvier, 2025/05/01
- [PATCH v3 23/33] target/arm/helper: compile file twice (user, system), Pierrick Bouvier, 2025/05/01
- [PATCH v3 33/33] target/arm/kvm-stub: compile file once (system), Pierrick Bouvier, 2025/05/01
- [PATCH v3 25/33] target/arm/arch_dump: remove TARGET_AARCH64 conditionals,
Pierrick Bouvier <=
- [PATCH v3 07/33] accel/hvf: add hvf_enabled() for common code, Pierrick Bouvier, 2025/05/01
- [PATCH v3 27/33] target/arm/arm-powerctl: compile file once (system), Pierrick Bouvier, 2025/05/01
- [PATCH v3 17/33] target/arm/debug_helper: remove target_ulong, Pierrick Bouvier, 2025/05/01