aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-08-07 10:47:03 +1000
committerAlexander Graf <agraf@suse.de>2013-09-02 10:06:41 +0200
commit95f5b6e3af28a24f97b25649e12f586e19e8a4a1 (patch)
treeaabf7f01f4179bad281587f362a87b3e8542f713 /disas
parentbb429d224733c263456c105eab93cd2b5e55add2 (diff)
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>
Diffstat (limited to 'disas')
-rw-r--r--disas/ppc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disas/ppc.c b/disas/ppc.c
index c149506fd8..99c4cbc3ab 100644
--- a/disas/ppc.c
+++ b/disas/ppc.c
@@ -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. */