aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-26 14:31:15 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-06 15:46:18 +0100
commit840e0862c52899258ae6743de2fc3826f9a4e4c3 (patch)
treecb8540fcb9adf425a4e3b8728d458e0a53d921e0
parent4b7d6557efaa3c0e291ab02319364f139ac400d9 (diff)
downloadqemu-840e0862c52899258ae6743de2fc3826f9a4e4c3.zip
qemu-840e0862c52899258ae6743de2fc3826f9a4e4c3.tar.gz
qemu-840e0862c52899258ae6743de2fc3826f9a4e4c3.tar.bz2
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é <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250210212931.62401-5-philmd@linaro.org>
-rw-r--r--target/microblaze/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c
index 13d194c..d5ee124 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)