binutils-gdb/gas/doc
Maciej W. Rozycki 38bf472a15 MIPS: Add Imagination interAptiv MR2 MIPS32r3 processor support
Add support for the Imagination interAptiv MR2 MIPS32r3 processor with
the MIPS16e2 ASE as per documentation, including in particular:

1. Support for implementation-specific interAptiv MR2 COPYW and UCOPYW
   MIPS16e2 instructions[1], for assembly and disassembly,

2. Support for implementation-specific interAptiv MR2 SAVE and RESTORE
   regular MIPS instructions[2], for assembly and disassembly,

3. ELF binary file annotation for the interAptiv MR2 MIPS architecture
   extension.

4. Support for interAptiv MR2 architecture selection for assembly, in
   the form of the `-march=interaptiv-mr2' command-line option and its
   corresponding `arch=interaptiv-mr2' setting for the `.set' and
   `.module' pseudo-ops.

5. Support for interAptiv MR2 architecture selection for disassembly,
   in the form of the `mips:interaptiv-mr2' target architecture, for
   use e.g. with the `-m' command-line option for `objdump'.

Parts of this change by Matthew Fortune and Andrew Bennett.

References:

[1] "MIPS32 interAptiv Multiprocessing System Software User's Manual",
    Imagination Technologies Ltd., Document Number: MD00904, Revision
    02.01, June 15, 2016, Section 24.3 "MIPS16e2 Implementation Specific
    Instructions", pp. 878-883

[2] same, Chapter 25 "Implementation-specific Instructions", pp. 911-917

	include/
	* elf/mips.h (E_MIPS_MACH_IAMR2): New macro.
	(AFL_EXT_INTERAPTIV_MR2): Likewise.
	* opcode/mips.h: Document new operand codes defined.
	(INSN_INTERAPTIV_MR2): New macro.
	(INSN_CHIP_MASK): Adjust accordingly.
	(CPU_INTERAPTIV_MR2): New macro.
	(cpu_is_member) <CPU_INTERAPTIV_MR2>: New case.
	(MIPS16_ALL_ARGS): Rename to...
	(MIPS_SVRS_ALL_ARGS): ... this.
	(MIPS16_ALL_STATICS): Rename to...
	(MIPS_SVRS_ALL_STATICS): ... this.

	bfd/
	* archures.c (bfd_mach_mips_interaptiv_mr2): New macro.
	* cpu-mips.c (I_interaptiv_mr2): New enum value.
	(arch_info_struct): Add "mips:interaptiv-mr2" entry.
	* elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New
	case.
	(mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise.
	(bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise.
	(print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
	(mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and
	`bfd_mach_mips_interaptiv_mr2' entries.
	* bfd-in2.h: Regenerate.

	opcodes/
	* mips-formats.h (INT_BIAS): New macro.
	(INT_ADJ): Redefine in INT_BIAS terms.
	* mips-dis.c (mips_arch_choices): Add "interaptiv-mr2" entry.
	(mips_print_save_restore): New function.
	(print_insn_arg) <OP_SAVE_RESTORE_LIST>: Update comment.
	(validate_insn_args) <OP_SAVE_RESTORE_LIST>: Remove `abort'
	call.
	(print_insn_args): Handle OP_SAVE_RESTORE_LIST.
	(print_mips16_insn_arg): Call `mips_print_save_restore' for
	OP_SAVE_RESTORE_LIST handling, factored out from here.
	* mips-opc.c (decode_mips_operand) <'-'> <'m'>: New case.
	(RD_31, RD_SP, WR_SP, MOD_SP, IAMR2): New macros.
	(mips_builtin_opcodes): Add "restore" and "save" entries.
	* mips16-opc.c (decode_mips16_operand) <'n', 'o'>: New cases.
	(IAMR2): New macro.
	(mips16_opcodes): Add "copyw" and "ucopyw" entries.

	binutils/
	* readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
	(print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
	* NEWS: Mention Imagination interAptiv MR2 processor support.

	gas/
	* config/tc-mips.c (validate_mips_insn): Handle
	OP_SAVE_RESTORE_LIST specially.
	(mips_encode_save_restore, mips16_encode_save_restore): New
	functions.
	(match_save_restore_list_operand): Factor out SAVE/RESTORE
	operand insertion into the instruction word or halfword to these
	new functions.
	(mips_cpu_info_table): Add "interaptiv-mr2" entry.

	* doc/c-mips.texi (MIPS Options): Add `interaptiv-mr2' to the
	`-march=' argument list.
2017-06-28 02:07:36 +01:00
..
all.texi Add support for the WebAssembly file format and the wasm32 ELF conversion to gas and the binutils. 2017-03-30 10:57:21 +01:00
as.texinfo MIPS16e2: Add MIPS16e2 ASE support 2017-05-15 13:57:10 +01:00
c-aarch64.texi Add support for the Cortex-A55 and Cortex-A75 versions of the AArch64 architecture. 2017-06-21 09:13:25 +01:00
c-alpha.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-arc.texi [ARC] Object attributes. 2017-05-10 14:42:22 +02:00
c-arm.texi [ARM] Add support for ARM Cortex-R52 processor 2017-06-24 10:56:32 +01:00
c-avr.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-bfin.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-cr16.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-cris.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-d10v.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-d30v.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-epiphany.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-h8300.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-hppa.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-i370.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-i386.texi X86: Add pseudo prefixes to control encoding 2017-03-09 09:59:00 -08:00
c-i860.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-i960.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-ia64.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-ip2k.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-lm32.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-m32c.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-m32r.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-m68hc11.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-m68k.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-metag.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-microblaze.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-mips.texi MIPS: Add Imagination interAptiv MR2 MIPS32r3 processor support 2017-06-28 02:07:36 +01:00
c-mmix.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-msp430.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-mt.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-nds32.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-nios2.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-ns32k.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-pdp11.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-pj.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-ppc.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-pru.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-riscv.texi Sanitize RISC-V GAS help text, documentation 2017-03-22 15:46:52 -07:00
c-rl78.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-rx.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-s390.texi S/390: Add support for new cpu architecture - arch12. 2017-02-23 18:27:38 +01:00
c-score.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-sh64.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-sh.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-sparc.texi binutils: support for the SPARC M8 processor 2017-05-19 09:27:08 -07:00
c-tic6x.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-tic54x.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-tilegx.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-tilepro.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-v850.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-vax.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-visium.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-wasm32.texi Add support for the WebAssembly file format and the wasm32 ELF conversion to gas and the binutils. 2017-03-30 10:57:21 +01:00
c-xc16x.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-xgate.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-xstormy16.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-xtensa.texi Fix spelling mistakes and typos in the GAS sources. 2017-01-23 15:23:07 +00:00
c-z8k.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
c-z80.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
fdl.texi
h8.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
internals.texi Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
Makefile.am Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
Makefile.in Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30