aboutsummaryrefslogtreecommitdiff
path: root/opcodes/s390-dis.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2003-03-21 13:28:09 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2003-03-21 13:28:09 +0000
commitaf169f23335a1df5cf6e27b1f3087c18ae32e5a7 (patch)
tree9bc014f844d4549181d46f207cdf244a726dcc91 /opcodes/s390-dis.c
parent1bd490c46b5a3d1313f60553d9a7d4c329bd26e9 (diff)
downloadgdb-af169f23335a1df5cf6e27b1f3087c18ae32e5a7.zip
gdb-af169f23335a1df5cf6e27b1f3087c18ae32e5a7.tar.gz
gdb-af169f23335a1df5cf6e27b1f3087c18ae32e5a7.tar.bz2
* s390-dis.c (init_disasm): Rename S390_OPCODE_ESAME to
S390_OPCODE_ZARCH. (print_insn_s390): Use new modes field of s390_opcodes. * s390-mkopc.c (ARCHBITS_ESAONLY, ARCHBITS_ESA, ARCHBITS_ESAME): Remove. (s390_opcode_mode_val, s390_opcode_cpu_val): New enums. (struct op_struct): Remove archbits. Add mode_bits and min_cpu. (insertOpcode): Replace archbits by min_cpu and mode_bits. (dumpTable): Write mode_bits and min_cpu instead of archbits. (main): Adapt to new format in s390-opcode.txt. * s390-opc.c (s390_opformats): Replace archbits by min_cpu and mode_bits. * s390-opc.txt: Replace archbits by min_cpu and mode_bits.
Diffstat (limited to 'opcodes/s390-dis.c')
-rw-r--r--opcodes/s390-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/s390-dis.c b/opcodes/s390-dis.c
index 8745a89..33121c7 100644
--- a/opcodes/s390-dis.c
+++ b/opcodes/s390-dis.c
@@ -57,7 +57,7 @@ init_disasm (info)
current_arch_mask = 1 << S390_OPCODE_ESA;
break;
case bfd_mach_s390_64:
- current_arch_mask = 1 << S390_OPCODE_ESAME;
+ current_arch_mask = 1 << S390_OPCODE_ZARCH;
break;
default:
abort ();
@@ -161,7 +161,7 @@ print_insn_s390 (memaddr, info)
const unsigned char *opindex;
/* Check architecture. */
- if (!(opcode->architecture & current_arch_mask))
+ if (!(opcode->modes & current_arch_mask))
continue;
/* Check signature of the opcode. */
if ((buffer[1] & opcode->mask[1]) != opcode->opcode[1]