diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-26 14:31:38 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
commit | 724bac41906752aafd432714d13fc78da2265f1c (patch) | |
tree | 77997b2ddedc944b8033e6e127723e45fe67ae42 | |
parent | 7bb1a717cb2fd11962d1ad72933e6235c2d638c6 (diff) | |
download | qemu-724bac41906752aafd432714d13fc78da2265f1c.zip qemu-724bac41906752aafd432714d13fc78da2265f1c.tar.gz qemu-724bac41906752aafd432714d13fc78da2265f1c.tar.bz2 |
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 <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250210212931.62401-7-philmd@linaro.org>
-rw-r--r-- | target/ppc/cpu_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 425049a..b9772c5 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) { |