diff options
author | Alan Modra <amodra@gmail.com> | 2011-12-13 08:19:02 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-12-13 08:19:02 +0000 |
commit | 8ebac3aae962b531a2b86b6afba9e9d19a30c74d (patch) | |
tree | b71c5f83ecf0f86273a0e6c9ceb471c3dd272e32 /opcodes/ppc-dis.c | |
parent | 888b9c016b45d1f3d69a7cdbf1d03b8ad1bd5ba7 (diff) | |
download | gdb-8ebac3aae962b531a2b86b6afba9e9d19a30c74d.zip gdb-8ebac3aae962b531a2b86b6afba9e9d19a30c74d.tar.gz gdb-8ebac3aae962b531a2b86b6afba9e9d19a30c74d.tar.bz2 |
* 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 8771f95..e011392 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 |