From: Philippe Mathieu-Daudé Date: Sun, 26 Jan 2025 13:31:15 +0000 (+0100) Subject: target/microblaze: Set disassemble_info::endian value in disas_set_info X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=840e0862c52899258ae6743de2fc3826f9a4e4c3;p=qemu.git target/microblaze: Set disassemble_info::endian value in disas_set_info Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20250210212931.62401-5-philmd@linaro.org> --- diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index 13d194cef8..d5ee1244ca 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -224,6 +224,8 @@ static void mb_disas_set_info(CPUState *cpu, disassemble_info *info) { info->mach = bfd_arch_microblaze; info->print_insn = print_insn_microblaze; + info->endian = TARGET_BIG_ENDIAN ? BFD_ENDIAN_BIG + : BFD_ENDIAN_LITTLE; } static void mb_cpu_realizefn(DeviceState *dev, Error **errp)