From: Pierrick Bouvier Date: Mon, 12 May 2025 18:04:22 +0000 (-0700) Subject: target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07e13d5fb5d289d4ae758cfd1f77356052789ad2;p=thirdparty%2Fqemu.git target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common Call is guarded by is_a64(env), so it's safe to expose without needing to assert anything. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-id: 20250512180502.2395029-9-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/cpu.c b/target/arm/cpu.c index c7e00e6432..ec9bc72c3d 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1182,8 +1182,6 @@ static void arm_disas_set_info(CPUState *cpu, disassemble_info *info) #endif } -#ifdef TARGET_AARCH64 - static void aarch64_cpu_dump_state(CPUState *cs, FILE *f, int flags) { ARMCPU *cpu = ARM_CPU(cs); @@ -1341,15 +1339,6 @@ static void aarch64_cpu_dump_state(CPUState *cs, FILE *f, int flags) } } -#else - -static inline void aarch64_cpu_dump_state(CPUState *cs, FILE *f, int flags) -{ - g_assert_not_reached(); -} - -#endif - static void arm_cpu_dump_state(CPUState *cs, FILE *f, int flags) { ARMCPU *cpu = ARM_CPU(cs);