diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-12-13 08:19:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-12-13 08:19:01 +0000 |
commit | d395b94aa6570dac4e315f8aa7135654dce1e7c0 (patch) | |
tree | 43b9aa29fe741587f64a5c83bf13d2d51e162df2 /opcodes/ppc-dis.c | |
parent | c8325b994b011a5cdca3a9f2314c170c32aedc11 (diff) | |
download | binutils-redhat-d395b94aa6570dac4e315f8aa7135654dce1e7c0.tar.gz |
* ppc-opc.c (ISA_V2): Define and use for relevant BO field tests.
(valid_bo_pre_v2, valid_bo_post_v2): New functions, extracted from..
(valid_bo): ..here. When disassembling, accept either 'y' or 'at'
type encoding on second pass.
(powerpc_opcodes): Use ISA_V2 to enable branch insns rather than
POWER4.
* ppc-dis.c (print_insn_powerpc): Delete dialect_orig. Instead
ignore deprecated on second pass.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r-- | opcodes/ppc-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 8771f95b15..e0113923c3 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -347,7 +347,6 @@ print_insn_powerpc (bfd_vma memaddr, const struct powerpc_opcode *opcode; const struct powerpc_opcode *opcode_end; unsigned long op; - ppc_cpu_t dialect_orig = dialect; status = (*info->read_memory_func) (memaddr, buffer, 4, info); if (status != 0) @@ -386,7 +385,8 @@ print_insn_powerpc (bfd_vma memaddr, if ((insn & opcode->mask) != opcode->opcode || (opcode->flags & dialect) == 0 - || (opcode->deprecated & dialect_orig) != 0) + || (dialect != ~(ppc_cpu_t) PPC_OPCODE_ANY + && (opcode->deprecated & dialect) != 0)) continue; /* Make two passes over the operands. First see if any of them |