aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@redhat.com>1999-11-01 19:29:55 +0000
committerGavin Romig-Koch <gavin@redhat.com>1999-11-01 19:29:55 +0000
commit2bd7f1f332946c3baeef11111d1dfb1994ce9942 (patch)
tree4a2d3dec575bdd40004c21aeb955f15b5747646c /opcodes/mips-dis.c
parentc58c5ee7b57bdfbc8305a7676bb7791ba4e12248 (diff)
downloadgdb-2bd7f1f332946c3baeef11111d1dfb1994ce9942.zip
gdb-2bd7f1f332946c3baeef11111d1dfb1994ce9942.tar.gz
gdb-2bd7f1f332946c3baeef11111d1dfb1994ce9942.tar.bz2
For include/opcode:
* mips.h (OPCODE_IS_MEMBER): New. For gas: * config/tc-mips.c (macro_build): Use OPCODE_IS_MEMBER. (mips_ip): Use OPCODE_IS_MEMBER. For opcodes: * mips-dis.c (_print_insn_mips): Use OPCODE_IS_MEMBER.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 1e3577c..a1bd62e 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -387,28 +387,8 @@ _print_insn_mips (memaddr, word, info)
if (op->pinfo != INSN_MACRO && (word & op->mask) == op->match)
{
register const char *d;
- int insn_isa;
-
- if ((op->membership & INSN_ISA) == INSN_ISA1)
- insn_isa = 1;
- else if ((op->membership & INSN_ISA) == INSN_ISA2)
- insn_isa = 2;
- else if ((op->membership & INSN_ISA) == INSN_ISA3)
- insn_isa = 3;
- else if ((op->membership & INSN_ISA) == INSN_ISA4)
- insn_isa = 4;
- else
- insn_isa = 15;
-
- if (insn_isa > mips_isa
- && (target_processor == 4650
- && op->membership & INSN_4650) == 0
- && (target_processor == 4010
- && op->membership & INSN_4010) == 0
- && (target_processor == 4100
- && op->membership & INSN_4100) == 0
- && (target_processor == 3900
- && op->membership & INSN_3900) == 0)
+
+ if (! OPCODE_IS_MEMBER (op, mips_isa, target_processor))
continue;
(*info->fprintf_func) (info->stream, "%s", op->name);