[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 08/12] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency
From: |
Anton Johansson |
Subject: |
Re: [PATCH v2 08/12] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency |
Date: |
Thu, 1 May 2025 01:49:06 +0200 |
On 30/04/25, Pierrick Bouvier wrote:
> 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 07f279fec8c..37b11e8866f 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"
> @@ -1172,7 +1173,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
>
Reviewed-by: Anton Johansson <anjo@rev.ng>
- Re: [PATCH v2 02/12] include/system/hvf: missing vaddr include, (continued)
- [PATCH v2 01/12] target/arm: Replace target_ulong -> uint64_t for HWBreakpoint, Pierrick Bouvier, 2025/04/30
- [PATCH v2 05/12] target/arm/kvm-stub: add kvm_arm_reset_vcpu stub, Pierrick Bouvier, 2025/04/30
- [PATCH v2 09/12] target/arm/cpu: remove TARGET_AARCH64 around aarch64_cpu_dump_state common, Pierrick Bouvier, 2025/04/30
- [PATCH v2 04/12] target/arm: move kvm stubs and remove CONFIG_KVM from kvm_arm.h, Pierrick Bouvier, 2025/04/30
- [PATCH v2 08/12] target/arm/cpu: remove TARGET_BIG_ENDIAN dependency, Pierrick Bouvier, 2025/04/30
- [PATCH v2 11/12] target/arm/cpu: compile file twice (user, system) only, Pierrick Bouvier, 2025/04/30
- [PATCH v2 06/12] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c, Pierrick Bouvier, 2025/04/30
- [PATCH v2 07/12] accel/hvf: add hvf_enabled() for common code, Pierrick Bouvier, 2025/04/30
- [PATCH v2 10/12] target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features, Pierrick Bouvier, 2025/04/30