summaryrefslogtreecommitdiff
path: root/ppc-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'ppc-dis.c')
-rw-r--r--ppc-dis.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ppc-dis.c b/ppc-dis.c
index 803b9f554c..f6fad8861a 100644
--- a/ppc-dis.c
+++ b/ppc-dis.c
@@ -3084,8 +3084,13 @@ int print_insn_ppc (bfd_vma pc, disassemble_info *info)
opc = bfd_getb32(buf);
else
opc = bfd_getl32(buf);
- return print_insn_powerpc (info, opc, pc,
- PPC | B32 | M601);
+ if (info->mach == bfd_mach_ppc64) {
+ return print_insn_powerpc (info, opc, pc,
+ PPC | B64);
+ } else {
+ return print_insn_powerpc (info, opc, pc,
+ PPC | B32 | M601);
+ }
}
/* Print a PowerPC or POWER instruction. */