Skip to content
Snippets Groups Projects
  1. May 11, 2022
    • Alan Modra's avatar
      opcodes cgen: remove use of PTR · 0dfdb523
      Alan Modra authored
      Note that opcodes is regenerated with cgen commit d1dd5fcc38e reverted,
      due to failure of bpf to compile with that patch applied.
      
      .../opcodes/bpf-opc.c:57:11: error: conversion from ‘long unsigned int’ to ‘unsigned int’ changes value from ‘18446744073709486335’ to ‘4294902015’ [-Werror=overflow]
         57 |   64, 64, 0xffffffffffff00ff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
      plus other similar errors.
      
      cpu/
      	* mep.opc (print_tpreg, print_spreg): Delete unnecessary
      	forward declarations.  Replace PTR with void *.
      	* mt.opc (print_dollarhex, print_pcrel): Delete forward decls.
      opcodes/
      	* bpf-desc.c, * bpf-dis.c, * cris-desc.c,
      	* epiphany-desc.c, * epiphany-dis.c,
      	* fr30-desc.c, * fr30-dis.c, * frv-desc.c, * frv-dis.c,
      	* ip2k-desc.c, * ip2k-dis.c, * iq2000-desc.c, * iq2000-dis.c,
      	* lm32-desc.c, * lm32-dis.c, * m32c-desc.c, * m32c-dis.c,
      	* m32r-desc.c, * m32r-dis.c, * mep-desc.c, * mep-dis.c,
      	* mt-desc.c, * mt-dis.c, * or1k-desc.c, * or1k-dis.c,
      	* xc16x-desc.c, * xc16x-dis.c,
      	* xstormy16-desc.c, * xstormy16-dis.c: Regenerate.
      0dfdb523
  2. Feb 27, 2012
    • Alan Modra's avatar
      cpu/ · a597d2d3
      Alan Modra authored
      	* mt.opc (print_dollarhex): Trim values to 32 bits.
      opcodes/
      	* mt-dis.c: Regenerate.
      a597d2d3
  3. Sep 02, 2009
  4. Jan 29, 2008
  5. Jul 05, 2007
  6. Dec 16, 2005
    • Nathan Sidwell's avatar
      Second part of ms1 to mt renaming. · d031aafb
      Nathan Sidwell authored
      	* bfd/archures.c (bfd_arch_mt): Renamed.
      	(bfd_mt_arch): Renamed.
      	(bfd_archures_list): Adjusted.
      	* bfd/bfd-in2.h: Rebuilt.
      	* bfd/config.bfd (mt): Remove special case targ_archs.
      	(mt-*-elf): Rename bfd_elf32_mt_vec.
      	* bfd/configure: Rebuilt.
      	* bfd/configure.in (bfd_elf32_mt_vec): Renamed.
      	(selarchs) Remove mt special case.
      	* bfd/cpu-mt.c (arch_info_struct): Adjust.
      	(bfd_mt_arch): Renamed, adjust.
      	* bfd/elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela,
      	mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section,
      	mt_elf_howto_table): Renamed, adjusted.
      	(mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs,
      	elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags,
      	mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data,
      	mt_elf_print_private_bfd_data): Renamed, adjusted.
      	(TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE,
      	ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section,
      	bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook,
      	elf_backend_gc_sweep_hook, elf_backend_check_relocs,
      	eld_backend_object_p, bfd_elf32_bfd_set_private_flags,
      	bfd_elf32_bfd_copy_private_bfd_data,
      	bfd_elf32_bfd_merge_private_bfd_data,
      	bfd_elf32_bfd_print_private_bfd_data): Adjusted.
      	* bfd/libbfd.h: Regenerated.
      	* bfd/reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16,
      	BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT,
      	BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed.
      	* bfd/targets.c (bfd_elf32_mt_vec): Renamed.
      	(_bfd_target_vector): Adjusted.
      	* binutils/readelf.c (guess_is_rela): Use EM_MT.
      	(dump_relocations, get_machine_name): Adjust.
      
      	* cpu/mt.cpu (define-arch, define-isa): Set name to mt.
      	(define-mach): Adjust.
      	* cpu/mt.opc (CGEN_ASM_HASH): Update.
      	(mt_asm_hash, mt_cgen_insn_supported): Renamed.
      	(parse_loopsize, parse_imm16): Adjust.
      
      	* gas/configure: Rebuilt.
      	* gas/configure.in (mt): Remove special case.
      	* gas/config/tc-mt.c (opcodes/mt-desc.h, opcodes/mt-opc.h): Change
      	#includes.
      	(mt_insn, mt_mach, mt_mach_bitmask, mt_flags, mt_architectures):
      	Rename, adjust.
      	(md_parse_option, md_show_usage, md_begin, md_assemble,
      	md_cgen_lookup_reloc, md_atof): Adjust.
      	(mt_force_relocation, mt_apply_fix, mt_fix_adjustable): Rename, adjust.
      	* gas/config/tc-mt.h (TC_MT): Rename.
      	(LISTING_HEADER, TARGET_ARCH, TARGET_FORMAT): Adjust.
      	(md_apply_fix): Adjust.
      	(mt_apply_fix, mt_fix_adjustable, mt_force_relocation): Rename.
      	(TC_FORCE_RELOCATION, tc_fix_adjustable): Adjust.
      
      	* gdb/mt-tdep.c (mt_arch_constants, mt_gdb_regnums): Rename, adjust.
      	(mt_register_name, mt_register_type, mt_register_reggroup_p,
      	mt_return_value, mt_skip_prologue, mt_breapoint_from_pc,
      	mt_pseudo_register_read, mt_pseudo_register_write, mt_frame_align,
      	mt_registers_info, mt_push_dummy_call, mt_unwind_cache,
      	mt_frame_unwind_cache, mt_unwind_pc, mt_unwind_dummy_id,
      	mt_frame_this_id, mt_frame_prev_register, mt_frame_base_address,
      	mt_frame_unwind, mt_frame_sniffer, mt_frame_base, mt_gdbarch_init,
      	_initialize_mt_tdep): Rename & adjust.
      
      	* include/dis-asm.h (print_insn_mt): Renamed.
      
      	* include/elf/common.h (EM_MT): Renamed.
      	* include/elf/mt.h: Rename relocs, cpu & other defines.
      
      	* ld/emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
      
      	* opcodes/Makefile.am (HFILES, CFILES, ALL_MACHINES): Adjust.
      	(stamp-mt): Adjust rule.
      	(mt-asm.lo, mt-desc.lo, mt-dis.lo, mt-ibld.lo, mt-opc.lo): Rename &
      	adjust.
      	* opcodes/Makefile.in: Rebuilt.
      	* opcodes/configure: Rebuilt.
      	* opcodes/configure.in (bfd_mt_arch): Rename & adjust.
      	* opcodes/disassemble.c (ARCH_mt): Renamed.
      	(disassembler): Adjust.
      	* opcodes/mt-asm.c: Renamed, rebuilt.
      	* opcodes/mt-desc.c: Renamed, rebuilt.
      	* opcodes/mt-desc.h: Renamed, rebuilt.
      	* opcodes/mt-dis.c: Renamed, rebuilt.
      	* opcodes/mt-ibld.c: Renamed, rebuilt.
      	* opcodes/mt-opc.c: Renamed, rebuilt.
      	* opcodes/mt-opc.h: Renamed, rebuilt.
      
      	* sid/Makefile.in: Rebuilt.
      	* sid/aclocal.m4: Rebuilt.
      	* sid/configure: Rebuilt.
      	* sid/sid.spec: Adjust.
      	* sid/bsp/Makefile.am: Adjust.
      	* sid/bsp/Makefile.in: Rebuilt.
      	* sid/bsp/aclocal.m4: Rebuilt.
      	* sid/bsp/configrun-sid.in: Adjust.
      	* sid/bsp/pregen/Makefile.in: Rebuilt.
      	* sid/bsp/pregen/mt-gdb.conf: Renamed & rebuilt.
      	* sid/bsp/pregen/mt-gloss.conf: Renamed & rebuilt.
      	* sid/bsp/pregen/pregen-configs.in: Adjust.
      	* sid/component/aclocal.m4: Rebuilt.
      	* sid/component/configure: Rebuilt.
      	* sid/component/tconfig.in: Adjust.
      	* sid/component/bochs/aclocal.m4: Rebuilt.
      	* sid/component/cache/Makefile.in: Rebuilt.
      	* sid/component/cgen-cpu/Makefile.in: Rebuilt.
      	* sid/component/cgen-cpu/aclocal.m4: Rebuilt.
      	* sid/component/cgen-cpu/compCGEN.cxx: Adjust.
      	* sid/component/cgen-cpu/configure: Rebuilt.
      	* sid/component/cgen-cpu/configure.in: Rebult.
      	* sid/component/cgen-cpu/mt/Makefile.am: Adjust.
      	* sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
      	* sid/component/cgen-cpu/mt/hw-cpu-mt.txt: Adjust.
      	* sid/component/cgen-cpu/mt/mt-cpu.h: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt-decode.cxx: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt-decode.h: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt-defs.h: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt-desc.h: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt-sem.cxx: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt-write.cxx: Rebuilt.
      	* sid/component/cgen-cpu/mt/mt.cxx: Adjust.
      	* sid/component/cgen-cpu/mt/mt.h: Adjust.
      	* sid/component/consoles/Makefile.in: Rebuilt.
      	* sid/component/families/aclocal.m4: Rebuilt.
      	* sid/component/families/configure: Rebuilt.
      	* sid/component/gdb/Makefile.in: Rebuilt.
      	* sid/component/gloss/Makefile.in: Rebuilt.
      	* sid/component/glue/Makefile.in: Rebuilt.
      	* sid/component/ide/Makefile.in: Rebuilt.
      	* sid/component/interrupt/Makefile.in: Rebuilt.
      	* sid/component/lcd/Makefile.in: Rebuilt.
      	* sid/component/lcd/testsuite/Makefile.in: Rebuilt.
      	* sid/component/loader/Makefile.am: Rebuilt.
      	* sid/component/loader/Makefile.in: Rebuilt.
      	* sid/component/mapper/Makefile.in: Rebuilt.
      	* sid/component/mapper/testsuite/Makefile.in: Rebuilt.
      	* sid/component/memory/Makefile.in: Rebuilt.
      	* sid/component/mmu/Makefile.in: Rebuilt.
      	* sid/component/parport/Makefile.in: Rebuilt.
      	* sid/component/profiling/Makefile.in: Rebuilt.
      	* sid/component/rtc/Makefile.in: Rebuilt.
      	* sid/component/sched/Makefile.in: Rebuilt.
      	* sid/component/testsuite/Makefile.in: Rebuilt.
      	* sid/component/timers/aclocal.m4: Rebuilt.
      	* sid/component/timers/configure: Rebuilt.
      	* sid/component/uart/Makefile.in: Rebuilt.
      	* sid/component/uart/testsuite/Makefile.in: Rebuilt.
      	* sid/config/config.sub: Adjust.
      	* sid/config/info.tcl.in: Adjust.
      	* sid/config/sidtargets.m4: Adjust.
      	* sid/doc/Makefile.in: Rebuilt.
      	* sid/main/dynamic/Makefile.am: Rebuilt.
      	* sid/main/dynamic/Makefile.in: Rebuilt.
      	* sid/main/dynamic/aclocal.m4: Rebuilt.
      	* sid/main/dynamic/configure: Rebuilt.
      d031aafb
  7. Dec 12, 2005
  8. Nov 08, 2005
    • Nathan Sidwell's avatar
      bfd: · 6f84a2a6
      Nathan Sidwell authored
      	Add ms2.
      	* archures.c (bfd_mach_ms2): Define.
      	* cpu-ms1.c (arch_info_struct): Add ms2 stanza.
      	* elf32-ms1.c (elf32_ms1_machine): Add ms2 case.
      	(ms1_elf_merge_private_bfd_data): Remove unused variables.  Add
      	correct merging logic, with workaround.
      	(ms1_elf_print_private_bfd_data): Add ms2 case.
      	* reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc.
      	* libbfd.h: Regenerated.
      	* bfd-in2.h: Regenerated.
      
      cpu:
      	Add ms2
      	* ms1.cpu (ms2, ms2bf): New architecture variant, cpu, machine and
      	model.
      	(f-uu8, f-uu1, f-imm16l, f-loopo, f-cb1sel, f-cb2sel, f-cb1incr,
      	f-cb2incr, f-rc3): New fields.
      	(LOOP): New instruction.
      	(JAL-HAZARD): New hazard.
      	(imm16o, loopsize, imm16l, rc3, cb1sel, cb2sel, cb1incr, cb2incr):
      	New operands.
      	(mul, muli, dbnz, iflush): Enable for ms2
      	(jal, reti): Has JAL-HAZARD.
      	(ldctxt, ldfb, stfb): Only ms1.
      	(fbcb): Only ms1,ms1-003.
      	(wfbinc, mefbinc, wfbincr, mwfbincr, fbcbincs, mfbcbincs,
      	fbcbincrs, mfbcbincrs): Enable for ms2.
      	(loop, loopu, dfbc, dwfb, fbwfb, dfbr): New ms2 insns.
      	* ms1.opc (parse_loopsize): New.
      	(parse_imm16): hi16/lo16 relocs are applicable to IMM16L.
      	(print_pcrel): New.
      
      gas:
      	Add ms2.
      	* config/tc-ms1.c (ms1_mach_bitmask): Initialize to MS1.
      	(ms1_architectures): Add ms2.
      	(md_parse_option): Add ms2.
      	(md_show_usage): Add ms2.
      	(md_assemble): Add JAL_HAZARD detection logic.
      	(md_cgen_lookup_reloc): Add MS1_OPERAND_LOOPSIZE case.
      	* doc/c-ms1.texi: New.
      	* doc/all.texi: Add MS1.
      	* doc/Makefile.am (CPU_DOCS): Add c-ms1.texi.
      	* doc/Makefile.in: Rebuilt.
      	* doc/Makefile: Rebuilt.
      
      gas/testsuite:
      	Add ms2.
      	* gas/ms1/allinsn.d: Adjust pcrel disassembly.
      	* gas/ms1/errors.exp: Fix target triplet.
      	* gas/ms1/ms1-16-003.d: Adjust pcrel disassembly.
      	* gas/ms1/ms1-16-003.s: Tweak label.
      	* gas/ms1/ms1.exp: Adjust target triplet.  Add ms2 test.
      	* gas/ms1/ms2.d, gas/ms1/ms2.s: New.
      	* gas/ms1/relocs.d: Adjust expected machine name and pcrel
      	disassembly.
      	* gas/ms1/relocs.exp: Adjust target triplet.
      
      include:
      	Add ms2.
      	* elf/ms1.h (EF_MS1_CPU_MS2): New.
      
      
      opcodes:
      	Add ms2.
      	* ms1-asm.c, ms1-desc.c, ms1-desc.h, ms1-dis.c, ms1-ibld.c,
      	ms1-opc.c, ms1-opc.h: Regenerated.
      6f84a2a6
  9. Jul 14, 2005
  10. Jul 05, 2005
  11. Jun 15, 2005
Loading