Skip to content

Commit 95f5b6e

Browse files
antonblanchardagraf
authored andcommitted
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 <[email protected]> Reviewed-by: Anthony Liguori <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
1 parent bb429d2 commit 95f5b6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

disas/ppc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -5157,7 +5157,8 @@ int
51575157
print_insn_ppc (bfd_vma memaddr, struct disassemble_info *info)
51585158
{
51595159
int dialect = (char *) info->private_data - (char *) 0;
5160-
return print_insn_powerpc (memaddr, info, 1, dialect);
5160+
return print_insn_powerpc (memaddr, info, info->endian == BFD_ENDIAN_BIG,
5161+
dialect);
51615162
}
51625163

51635164
/* Print a big endian PowerPC instruction. */

0 commit comments

Comments
 (0)