aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m32r-opc.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-08-03 19:56:43 +0000
committerDoug Evans <dje@google.com>1998-08-03 19:56:43 +0000
commitc2009f4a31b33b3615f0425bfac096b9f3055d22 (patch)
treed68bfa4207915bf22fe2574b6c6e4da9d9f1cde5 /opcodes/m32r-opc.h
parent329af45931b37e0f6192e075fcfd98de0c13f8c8 (diff)
downloadgdb-c2009f4a31b33b3615f0425bfac096b9f3055d22.zip
gdb-c2009f4a31b33b3615f0425bfac096b9f3055d22.tar.gz
gdb-c2009f4a31b33b3615f0425bfac096b9f3055d22.tar.bz2
Move all global state data into opcode table struct, and treat
opcode table as something that is "opened/closed". * cgen-asm.c (all fns): New first arg of opcode table descriptor. (cgen_asm_init): Delete. (cgen_set_parse_operand_fn): New function. * cgen-dis.c (all fns): New first arg of opcode table descriptor. (cgen_dis_init): Delete. * cgen-opc.c (all fns): New first arg of opcode table descriptor. (cgen_current_{opcode_table_mach,endian}): Delete. * cgen-asm.in (all fns): New first arg of opcode table descriptor. * cgen-dis.in (all fns): Ditto. * cgen-opc.in (all fns): Ditto. * m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate. * cgen-asm.in (parse_insn_normal): Ignore case in mnemonics. * cgen-dis.in (print_normal): Split into two. (print_address): New function. (extract_insn_normal): Clarify insn_value arg. (print_int_insn): Renamed from print_insn. (print_insn): New arg. (print_insn_@arch@): Open opcode table if not already done so. Move reading of insn into print_insn.
Diffstat (limited to 'opcodes/m32r-opc.h')
-rw-r--r--opcodes/m32r-opc.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/opcodes/m32r-opc.h b/opcodes/m32r-opc.h
index bdd7fe7..d87afea 100644
--- a/opcodes/m32r-opc.h
+++ b/opcodes/m32r-opc.h
@@ -226,7 +226,15 @@ typedef enum cgen_insn_type {
/* start-sanitize-m32rx */
, M32R_INSN_MACLO_A
/* end-sanitize-m32rx */
- , M32R_INSN_MACWHI, M32R_INSN_MACWLO, M32R_INSN_MUL, M32R_INSN_MULHI
+ , M32R_INSN_MACWHI
+/* start-sanitize-m32rx */
+ , M32R_INSN_MACWHI_A
+/* end-sanitize-m32rx */
+ , M32R_INSN_MACWLO
+/* start-sanitize-m32rx */
+ , M32R_INSN_MACWLO_A
+/* end-sanitize-m32rx */
+ , M32R_INSN_MUL, M32R_INSN_MULHI
/* start-sanitize-m32rx */
, M32R_INSN_MULHI_A
/* end-sanitize-m32rx */
@@ -234,7 +242,15 @@ typedef enum cgen_insn_type {
/* start-sanitize-m32rx */
, M32R_INSN_MULLO_A
/* end-sanitize-m32rx */
- , M32R_INSN_MULWHI, M32R_INSN_MULWLO, M32R_INSN_MV, M32R_INSN_MVFACHI
+ , M32R_INSN_MULWHI
+/* start-sanitize-m32rx */
+ , M32R_INSN_MULWHI_A
+/* end-sanitize-m32rx */
+ , M32R_INSN_MULWLO
+/* start-sanitize-m32rx */
+ , M32R_INSN_MULWLO_A
+/* end-sanitize-m32rx */
+ , M32R_INSN_MV, M32R_INSN_MVFACHI
/* start-sanitize-m32rx */
, M32R_INSN_MVFACHI_A
/* end-sanitize-m32rx */
@@ -387,16 +403,16 @@ extern CGEN_KEYWORD m32r_cgen_opval_h_cr;
extern CGEN_KEYWORD m32r_cgen_opval_h_accums;
/* end-sanitize-m32rx */
-#define CGEN_INIT_PARSE() \
+#define CGEN_INIT_PARSE(od) \
{\
}
-#define CGEN_INIT_INSERT() \
+#define CGEN_INIT_INSERT(od) \
{\
}
-#define CGEN_INIT_EXTRACT() \
+#define CGEN_INIT_EXTRACT(od) \
{\
}
-#define CGEN_INIT_PRINT() \
+#define CGEN_INIT_PRINT(od) \
{\
}