From 95f5b6e3af28a24f97b25649e12f586e19e8a4a1 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Wed, 7 Aug 2013 10:47:03 +1000 Subject: 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 Reviewed-by: Anthony Liguori Signed-off-by: Alexander Graf --- disas/ppc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'disas') 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. */ -- cgit v1.2.3