[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 17/58] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency
From: |
Peter Maydell |
Subject: |
[PULL 17/58] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency |
Date: |
Thu, 15 May 2025 11:25:05 +0100 |
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250512180502.2395029-8-pierrick.bouvier@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@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 66047693415..c7e00e64325 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.43.0
- [PULL 06/58] target/arm/kvm: don't check TYPE_AARCH64_CPU, (continued)
- [PULL 06/58] target/arm/kvm: don't check TYPE_AARCH64_CPU, Peter Maydell, 2025/05/15
- [PULL 05/58] target/arm: Move aarch64 CPU property code to TYPE_ARM_CPU, Peter Maydell, 2025/05/15
- [PULL 07/58] target/arm: Remove TYPE_AARCH64_CPU, Peter Maydell, 2025/05/15
- [PULL 08/58] rust: pl011: Cut down amount of text quoted from PL011 TRM, Peter Maydell, 2025/05/15
- [PULL 10/58] MAINTAINERS: Add an entry for the Bananapi machine, Peter Maydell, 2025/05/15
- [PULL 11/58] target/arm: Replace target_ulong -> vaddr for HWBreakpoint, Peter Maydell, 2025/05/15
- [PULL 12/58] include/system/hvf: missing vaddr include, Peter Maydell, 2025/05/15
- [PULL 13/58] meson: add common libs for target and target_system, Peter Maydell, 2025/05/15
- [PULL 09/58] hw/arm: Replace TABs for spaces in OMAP board and device code, Peter Maydell, 2025/05/15
- [PULL 14/58] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h, Peter Maydell, 2025/05/15
- [PULL 17/58] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency,
Peter Maydell <=
- [PULL 15/58] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub, Peter Maydell, 2025/05/15
- [PULL 21/58] target/arm/cpu32-stubs.c: compile file twice (user, system), Peter Maydell, 2025/05/15
- [PULL 19/58] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features, Peter Maydell, 2025/05/15
- [PULL 18/58] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common, Peter Maydell, 2025/05/15
- [PULL 22/58] tcg: add vaddr type for helpers, Peter Maydell, 2025/05/15
- [PULL 24/58] target/arm/helper: use vaddr instead of target_ulong for probe_access, Peter Maydell, 2025/05/15
- [PULL 20/58] target/arm/cpu: compile file twice (user, system) only, Peter Maydell, 2025/05/15
- [PULL 28/58] target/arm/debug_helper: compile file twice (user, system), Peter Maydell, 2025/05/15
- [PULL 23/58] target/arm/helper: use vaddr instead of target_ulong for exception_pc_alignment, Peter Maydell, 2025/05/15
- [PULL 27/58] target/arm/debug_helper: remove target_ulong, Peter Maydell, 2025/05/15