1. 11 Feb, 1999 13 commits
  2. 10 Feb, 1999 13 commits
    • Doug Evans's avatar
      * sparc-desc.c: New file. · 8d3b7234
      Doug Evans authored
      	* sparc-desc.h: New file.
      	* sparc-opc.h: New file.
      	* decode64.c: New file.
      	* decode64.h: New file.
      	* sem64.c: New file.
      	* cpu64.c: New file.
      	* cpu64.h: New file.
      	* model64.h: New file.
      	* mloop64.in: New file.
      	* regs64.h: New file.
      	* trap64.c: New file.
      	* cpu32.h,decode32.c,decode32.h,model32.c,sem32.c: Rebuild.
      8d3b7234
    • Stan Shebs's avatar
      Declare Gould configuration obsolete: · baf6de2e
      Stan Shebs authored
      	* configure.host, configure.tgt: Comment out Gould configs.
      	* Makefile.in: Comment out Gould-related actions.
      	* gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
      	* NEWS: Mention obsolete status.
      And the first one bites the dust...
      baf6de2e
    • Doug Evans's avatar
    • Christopher Faylor's avatar
      Fix a typo. · dc3623dc
      Christopher Faylor authored
      dc3623dc
    • Doug Evans's avatar
      * Makefile.in (SPARC64_OBJS): Add dev64.o. · c14d22a7
      Doug Evans authored
      	(CPU_OBJS): New variable.
      	(SIM_OBJS): Add sparc-desc.o.
      	(SIM_EXTRA_DEPS): Replace cpu-opc.h with sparc-desc.h.
      	(sim-core.o): Add dev64.h dependency.
      	(dev64.o): Add rule.
      	(stamp-arch,stamp-cpu32): Update FLAGS variable, option syntax changed.
      	(stamp-cpu64): Ditto.
      	(stamp-desc): New rule.
      	* configure.in (sim_link_files,sim_link_links): Delete.
      	Set cpu_objs to one of SPARC32_OBJS,SPARC64_OBJS.
      	* configure: Rebuild.
      	* acconfig.h: Rebuild.
      	* config.in: Rebuild.
      	* dev64.c: New file.
      	* dev64.h: New file.
      	* sparc64.c: New file.
      	* trap64.h: New file.
      	* arch.c,arch.h,cpuall.h: Rebuild.
      	* cpu32.c,decode32.c,decode32.h,model32.c,sem32.c: Rebuild.
      	* sim-if.c (sparc_disassemble_insn): New function.
      	(sim_open): sparc_cgen_cpu_open renamed from sparc_cgen_opcode_open.
      	Set disassembler.
      	(sim_close): sparc_cgen_cpu_open renamed from sparc_cgen_opcode_open.
      	* sim-main.h: Don't include cpu-opc.h,cpu-sim.h. Include
      	sparc-desc.h,sparc-opc.h,sparc-sim.h.
      c14d22a7
    • Doug Evans's avatar
      * Makefile.in (SIM_EXTRA_DEPS): Add m32r-desc.h, delete cpu-opc.h. · 9aa2d8dd
      Doug Evans authored
      	(stamp-arch,stamp-cpu): Update FLAGS variable, option syntax changed.
      	(stamp-xmloop): s/-parallel/-parallel-write/.
      	(stamp-xcpu): Update FLAGS variable, option syntax changed.
      	* configure.in (sim_link_files,sim_link_links): Delete.
      	* configure: Rebuild.
      	* decode.c,decode.h,model.c,sem-switch.c,sem.c: Rebuild.
      	* decodex.c,decodex.h,modelx.c,semx-switch.c: Rebuild.
      	* mloop.in (execute): CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
      	* sim-if.c (sim_open): m32r_cgen_cpu_open renamed from
      	m32r_cgen_opcode_open.  Set disassembler.
      	(sim_close): m32r_cgen_cpu_open renamed from m32r_cgen_opcode_open.
      	* sim-main.h: Don't include cpu-opc.h,cpu-sim.h. Include
      	m32r-desc.h,m32r-opc.h,m32r-sim.h.
      9aa2d8dd
    • Doug Evans's avatar
      * configure.in (sparc*): Configure sparc subdir if --with-cgen or · 2d84b543
      Doug Evans authored
      	--with-cgen-sim.
      	* configure: Rebuild.
      2d84b543
    • Doug Evans's avatar
      * Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h. · 3ab32eae
      Doug Evans authored
      	(cgen.o): Ditto.
      	(EXTRA_as_new_SOURCES): Comment out.
      	(.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
      	* Makefile.in: Rebuild.
      	* doc/Makefile.in: Rebuild.
      	* configure.in: Require autoconf 2.13.  Redo using_cgen handling.
      	Delete call to AM_CYGWIN32.  Replace AM_EXEEXT with AC_EXEEXT.
      	(AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
      	* configure: Rebuild.
      	* aclocal.m4: Rebuild.
      	* config.in: Rebuild.
      	* cgen.c: Include cgen-desc.h, not cgen-opc.h.
      	(*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	(gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
      	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
      	CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
      	(gas_cgen_record_fixup): Remove unnecessary != 0 test.
      	(gas_cgen_record_fixup_exp): Ditto.
      	(gas_cgen_finish_insn): Ditto.  Refer to operand table via cpu
      	descriptor, not global variable.
      	(gas_cgen_md_apply_fix3): Refer to operand_table via cpu
      	descriptor, not global variable.  Refer to insert_operand handler
      	via cpu descriptor, not global function.
      	* cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	* config/tc-fr30.c: Include opcodes/fr30-desc.h.
      	(*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
      	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
      	Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
      	* config/tc-m32r.c: Ditto.
      	(assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
      	(md_assemble): Ditto.
      	(md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
      3ab32eae
    • Doug Evans's avatar
      * Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h. · 310addc4
      Doug Evans authored
      	(cgen.o): Ditto.
      	(EXTRA_as_new_SOURCES): Comment out.
      	(.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
      	* Makefile.in: Rebuild.
      	* configure.in: Require autoconf 2.13.  Redo using_cgen handling.
      	Delete call to AM_CYGWIN32.  Replace AM_EXEEXT with AC_EXEEXT.
      	(AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
      	* configure: Rebuild.
      	* aclocal.m4: Rebuild.
      	* config.in: Rebuild.
      	* cgen.c: Include cgen-desc.h, not cgen-opc.h.
      	(*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	(gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
      	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
      	CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
      	(gas_cgen_record_fixup): Remove unnecessary != 0 test.
      	(gas_cgen_record_fixup_exp): Ditto.
      	(gas_cgen_finish_insn): Ditto.  Refer to operand table via cpu
      	descriptor, not global variable.
      	(gas_cgen_md_apply_fix3): Refer to operand_table via cpu
      	descriptor, not global variable.  Refer to insert_operand handler
      	via cpu descriptor, not global function.
      	* cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	* config/tc-fr30.c: Include opcodes/fr30-desc.h.
      	(*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
      	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
      	Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
      	* config/tc-m32r.c: Ditto.
      	(assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
      	(md_assemble): Ditto.
      	(md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
      310addc4
    • Doug Evans's avatar
      * i960c-asm.c,i960c-dis.c,i960c-opc.c,i960c-opc.h: Delete. · b43ef111
      Doug Evans authored
      	* i960-dis.c (print_insn_i960): Rename from print_insn_i960_orig.
      	* Makefile.am: Remove references to them.
      	(HFILES): Add fr30-desc.h,m32r-desc.h.
      	(CFILES): Add fr30-desc.c,fr30-ibld.c,m32r-desc.c,m32r-ibld.c,
      	m32r-opinst.c.
      	(ALL_MACHINES): Update.
      	* configure.in: Redo handling of cgen_files.
      	(bfd_i960_arch): Delete i960c-*.lo files.
      	* configure: Regenerate.
      	* cgen-asm.c (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	(hash_insn_array): Rewrite.
      	* cgen-dis.c (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	(hash_insn_array): Rewrite.
      	* cgen-opc.c (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
      	(cgen_lookup_insn,cgen_get_insn_operands): Define here.
      	(cgen_lookup_get_insn_operands): Ditto.
      	* fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerate.
      	* m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate.
      	* po/POTFILES.in: Rebuild.
      	* po/opcodes.pot: Rebuild.
      
      	* Makefile.am (fr30 cgen dependencies): Add new files.
      	(m32r cgen dependencies): Add new files.
      	(CGENFILES): Update for opcode table reorg.
      	(run-cgen): Pass $(extrafiles).
      	(stamp-m32r): Set extrafiles to "opinst".
      	* cgen-opc.in: Delete.
      	* cgen-ibld.in: New file.
      	* cgen-asm.in: Include @prefix@-desc.h.
      	(insert_1,insert_normal,insert_insn_normal): Moved to cgen-ibld.in.
      	* cgen-dis.in: Include @prefix@-desc.h.
      	(fill_cache,extract_1,extract_normal,extract_insn_normal): Moved to
      	cgen-ibld.in.
      	* cgen.sh: Accept new arg to handle generation of opinst file.
      	Generate arch-desc.[ch],arch-opinst.c,arch-ibld.c files.
      b43ef111
    • Doug Evans's avatar
      cleanup last change · 39f7f4b8
      Doug Evans authored
      39f7f4b8
    • Doug Evans's avatar
      (CGEN_INSN_ATTR): New type. · b1673d72
      Doug Evans authored
      b1673d72
    • Doug Evans's avatar
      * cgen.h (CGEN_CPU_DESC): Renamed from CGEN_OPCODE_DESC. · f1ffcb32
      Doug Evans authored
      	All uses updated.  New members int_insn_p, max_insn_size,
      	parse_operand,insert_operand,extract_operand,print_operand,
      	sizeof_fields,set_fields_bitsize,get_int_operand,set_int_operand,
      	get_vma_operand,set_vma_operand,parse_handlers,insert_handlers,
      	extract_handlers,print_handlers.
      	(CGEN_ATTR): Change type of num_nonbools to unsigned int.
      	(CGEN_ATTR_BOOL_OFFSET): New macro.
      	(CGEN_ATTR_MASK): Subtract it to compute bit number.
      	(CGEN_ATTR_VALUE): Redo bool/nonbool attr calculation.
      	(cgen_opcode_handler): Renamed from cgen_base.
      	(CGEN_HW_ATTR_VALUE): Renamed from CGEN_HW_ATTR, all uses updated.
      	(CGEN_OPERAND_ATTR_VALUE): Renamed from CGEN_OPERAND_ATTR,
      	all uses updated.
      	(CGEN_OPERAND_INDEX): Rewrite to use table entry, not global.
      	(enum cgen_opinst_type): Renamed from cgen_operand_instance_type.
      	(CGEN_IFLD_ATTR_VALUE): Renamed from CGEN_IFLD_ATTR, all uses updated.
      	(CGEN_OPCODE,CGEN_IBASE): New types.
      	(CGEN_INSN): Rewrite.
      	(CGEN_{ASM,DIS}_HASH*): Delete.
      	(init_opcode_table,init_ibld_table): Declare.
      f1ffcb32
  3. 09 Feb, 1999 8 commits
  4. 08 Feb, 1999 6 commits