diff options
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r-- | opcodes/ppc-dis.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index a2cfc0b..efa7898 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -340,7 +340,10 @@ powerpc_init_dialect (struct disassemble_info *info) dialect = ppc_parse_cpu (dialect, &sticky, "vle"); break; default: - dialect = ppc_parse_cpu (dialect, &sticky, "power9") | PPC_OPCODE_ANY; + if (info->arch == bfd_arch_powerpc) + dialect = ppc_parse_cpu (dialect, &sticky, "power9") | PPC_OPCODE_ANY; + else + dialect = ppc_parse_cpu (dialect, &sticky, "pwr"); break; } @@ -431,8 +434,7 @@ disassemble_init_powerpc (struct disassemble_info *info) last = spe2_opcd_indices[i]; } - if (info->arch == bfd_arch_powerpc) - powerpc_init_dialect (info); + powerpc_init_dialect (info); } /* Print a big endian PowerPC instruction. */ @@ -451,14 +453,6 @@ print_insn_little_powerpc (bfd_vma memaddr, struct disassemble_info *info) return print_insn_powerpc (memaddr, info, 0, get_powerpc_dialect (info)); } -/* Print a POWER (RS/6000) instruction. */ - -int -print_insn_rs6000 (bfd_vma memaddr, struct disassemble_info *info) -{ - return print_insn_powerpc (memaddr, info, 1, PPC_OPCODE_POWER); -} - /* Extract the operand value from the PowerPC or POWER instruction. */ static int64_t |