[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 08/49] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency
From: |
Pierrick Bouvier |
Subject: |
[PATCH v7 08/49] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency |
Date: |
Wed, 7 May 2025 16:41:59 -0700 |
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
target/arm/cpu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index d062829ec14..b0eb02c88ba 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -23,6 +23,7 @@
#include "qemu/timer.h"
#include "qemu/log.h"
#include "exec/page-vary.h"
+#include "exec/tswap.h"
#include "target/arm/idau.h"
#include "qemu/module.h"
#include "qapi/error.h"
@@ -1171,7 +1172,7 @@ static void arm_disas_set_info(CPUState *cpu,
disassemble_info *info)
info->endian = BFD_ENDIAN_LITTLE;
if (bswap_code(sctlr_b)) {
- info->endian = TARGET_BIG_ENDIAN ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+ info->endian = target_big_endian() ? BFD_ENDIAN_LITTLE :
BFD_ENDIAN_BIG;
}
info->flags &= ~INSN_ARM_BE32;
#ifndef CONFIG_USER_ONLY
--
2.47.2
- [PATCH v7 00/49] single-binary: compile target/arm twice, Pierrick Bouvier, 2025/05/07
- [PATCH v7 01/49] target/arm: Replace target_ulong -> vaddr for HWBreakpoint, Pierrick Bouvier, 2025/05/07
- [PATCH v7 07/49] accel/hvf: add hvf_enabled() for common code, Pierrick Bouvier, 2025/05/07
- [PATCH v7 03/49] meson: add common libs for target and target_system, Pierrick Bouvier, 2025/05/07
- [PATCH v7 11/49] target/arm/cpu: compile file twice (user, system) only, Pierrick Bouvier, 2025/05/07
- [PATCH v7 02/49] include/system/hvf: missing vaddr include, Pierrick Bouvier, 2025/05/07
- [PATCH v7 08/49] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency,
Pierrick Bouvier <=
- [PATCH v7 06/49] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c, Pierrick Bouvier, 2025/05/07
- [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