aboutsummaryrefslogtreecommitdiff
path: root/ppc-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'ppc-dis.c')
-rw-r--r--ppc-dis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ppc-dis.c b/ppc-dis.c
index 86e384f34f..d01dcd6d1c 100644
--- a/ppc-dis.c
+++ b/ppc-dis.c
@@ -3074,7 +3074,8 @@ static int print_insn_powerpc(FILE *, unsigned long insn, unsigned memaddr, int
int print_insn_ppc (bfd_vma pc, disassemble_info *info)
{
- return print_insn_powerpc (info->stream, *(unsigned *)(long)pc, pc,
+ return print_insn_powerpc (info->stream,
+ (unsigned int)bfd_getb32((bfd_byte *)pc), pc,
PPC_OPCODE_PPC | PPC_OPCODE_601);
}