mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
disas/ppc.c: Fix little endian disassembly
Use info->endian to select the endian of the instruction to be disassembled. Signed-off-by: Anton Blanchard <anton@samba.org> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
bb429d2247
commit
95f5b6e3af
1 changed files with 2 additions and 1 deletions
|
@ -5157,7 +5157,8 @@ int
|
|||
print_insn_ppc (bfd_vma memaddr, struct disassemble_info *info)
|
||||
{
|
||||
int dialect = (char *) info->private_data - (char *) 0;
|
||||
return print_insn_powerpc (memaddr, info, 1, dialect);
|
||||
return print_insn_powerpc (memaddr, info, info->endian == BFD_ENDIAN_BIG,
|
||||
dialect);
|
||||
}
|
||||
|
||||
/* Print a big endian PowerPC instruction. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue