mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
7bb1a717cb
commit
724bac4190
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue