Move all global state data into opcode table struct, and treat
authorDoug Evans <dje@google.com>
Mon, 3 Aug 1998 19:56:43 +0000 (19:56 +0000)
committerDoug Evans <dje@google.com>
Mon, 3 Aug 1998 19:56:43 +0000 (19:56 +0000)
commitc2009f4a31b33b3615f0425bfac096b9f3055d22
treed68bfa4207915bf22fe2574b6c6e4da9d9f1cde5
parent329af45931b37e0f6192e075fcfd98de0c13f8c8
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.
opcodes/ChangeLog
opcodes/cgen-opc.in
opcodes/m32r-opc.c
opcodes/m32r-opc.h