From: Philippe Mathieu-Daudé Date: Sun, 26 Jan 2025 13:31:38 +0000 (+0100) Subject: target/ppc: Set disassemble_info::endian value in disas_set_info() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=724bac41906752aafd432714d13fc78da2265f1c;p=qemu.git target/ppc: Set disassemble_info::endian value in disas_set_info() Have the CPUClass::disas_set_info() callback always set\ the disassemble_info::endian field. Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250210212931.62401-7-philmd@linaro.org> --- diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 425049ab09..b9772c53ec 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7401,6 +7401,8 @@ static void ppc_disas_set_info(CPUState *cs, disassemble_info *info) if ((env->hflags >> MSR_LE) & 1) { info->endian = BFD_ENDIAN_LITTLE; + } else { + info->endian = BFD_ENDIAN_BIG; } info->mach = env->bfd_mach; if (!env->bfd_mach) {