On 30/04/25, Pierrick Bouvier wrote: > Signed-off-by: Pierrick Bouvier <pierrick.bouv...@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 <a...@rev.ng>