Commit 95f5b6e3 authored by Anton Blanchard's avatar Anton Blanchard Committed by Alexander Graf

disas/ppc.c: Fix little endian disassembly

Use info->endian to select the endian of the instruction to
be disassembled.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Reviewed-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent bb429d22
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment