bfd/
* archures.c (bfd_mach_mips_loongson_3a): Defined. * bfd-in2.h (bfd_mach_mips_loongson_3a): Defined. * cpu-mips.c (I_loongson_3a): New add. (arch_info_struct): Add loongson_3a. * elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a. (mips_set_isa_flags): Add loongson_3a. (mips_mach_extensions): Add loongson_3a in MIPS64 extensions. binutils/ * readelf.c (get_machine_flags): Add loongson-3a. gas/ * config/tc-mips.c (mips_cpu_info_table): Add loongson3a in MIPS 64. * doc/c-mips.texi (MIPS cpu): Add loongson3a. include/ * elf/mips.h (E_MIPS_MACH_LS3A): Defined. * opcode/mips.h (INSN_LOONGSON_3A): Defined. (CPU_LOONGSON_3A): Defined. (OPCODE_IS_MEMBER): Add LOONGSON_3A. opcodes/ * mips-dis.c (mips_arch_choices): Add loongson3a. * mips-opc.c (IL3A): Defined as INSN_LOONGSON_3A. (mips_builtin_opcodes): Modify some instructions' membership from IL2F to IL2F|IL3A, since these instructions are supported by Loongson_3A.
This commit is contained in:
parent
590c505c0e
commit
e678928a68
|
@ -1,3 +1,7 @@
|
||||||
|
2010-11-11 Mingming Sun <mingm.sun@gmail.com>
|
||||||
|
|
||||||
|
* mips.h (E_MIPS_MACH_LS3A): Defined.
|
||||||
|
|
||||||
2010-11-02 Joseph Myers <joseph@codesourcery.com>
|
2010-11-02 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* tic6x-attrs.h (Tag_ABI_wchar_t, Tag_ABI_stack_align_needed,
|
* tic6x-attrs.h (Tag_ABI_wchar_t, Tag_ABI_stack_align_needed,
|
||||||
|
|
|
@ -222,6 +222,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
|
||||||
#define E_MIPS_MACH_9000 0x00990000
|
#define E_MIPS_MACH_9000 0x00990000
|
||||||
#define E_MIPS_MACH_LS2E 0x00A00000
|
#define E_MIPS_MACH_LS2E 0x00A00000
|
||||||
#define E_MIPS_MACH_LS2F 0x00A10000
|
#define E_MIPS_MACH_LS2F 0x00A10000
|
||||||
|
#define E_MIPS_MACH_LS3A 0x00A20000
|
||||||
|
|
||||||
/* Processor specific section indices. These sections do not actually
|
/* Processor specific section indices. These sections do not actually
|
||||||
exist. Symbols with a st_shndx field corresponding to one of these
|
exist. Symbols with a st_shndx field corresponding to one of these
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2010-11-11 Mingming Sun <mingm.sun@gmail.com>
|
||||||
|
|
||||||
|
* mips.h (INSN_LOONGSON_3A): Defined.
|
||||||
|
(CPU_LOONGSON_3A): Defined.
|
||||||
|
(OPCODE_IS_MEMBER): Add LOONGSON_3A.
|
||||||
|
|
||||||
2010-10-09 Matt Rice <ratmice@gmail.com>
|
2010-10-09 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
* cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE): Rename bool attribute to bool_.
|
* cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE): Rename bool attribute to bool_.
|
||||||
|
|
|
@ -594,6 +594,8 @@ static const unsigned int mips_isa_table[] =
|
||||||
#define INSN_LOONGSON_2E 0x40000000
|
#define INSN_LOONGSON_2E 0x40000000
|
||||||
/* ST Microelectronics Loongson 2F. */
|
/* ST Microelectronics Loongson 2F. */
|
||||||
#define INSN_LOONGSON_2F 0x80000000
|
#define INSN_LOONGSON_2F 0x80000000
|
||||||
|
/* Loongson 3A. */
|
||||||
|
#define INSN_LOONGSON_3A 0x80000400
|
||||||
/* RMI Xlr instruction */
|
/* RMI Xlr instruction */
|
||||||
#define INSN_XLR 0x00000020
|
#define INSN_XLR 0x00000020
|
||||||
|
|
||||||
|
@ -647,6 +649,7 @@ static const unsigned int mips_isa_table[] =
|
||||||
#define CPU_SB1 12310201 /* octal 'SB', 01. */
|
#define CPU_SB1 12310201 /* octal 'SB', 01. */
|
||||||
#define CPU_LOONGSON_2E 3001
|
#define CPU_LOONGSON_2E 3001
|
||||||
#define CPU_LOONGSON_2F 3002
|
#define CPU_LOONGSON_2F 3002
|
||||||
|
#define CPU_LOONGSON_3A 3003
|
||||||
#define CPU_OCTEON 6501
|
#define CPU_OCTEON 6501
|
||||||
#define CPU_XLR 887682 /* decimal 'XLR' */
|
#define CPU_XLR 887682 /* decimal 'XLR' */
|
||||||
|
|
||||||
|
@ -680,6 +683,8 @@ static const unsigned int mips_isa_table[] =
|
||||||
&& ((insn)->membership & INSN_LOONGSON_2E) != 0) \
|
&& ((insn)->membership & INSN_LOONGSON_2E) != 0) \
|
||||||
|| (cpu == CPU_LOONGSON_2F \
|
|| (cpu == CPU_LOONGSON_2F \
|
||||||
&& ((insn)->membership & INSN_LOONGSON_2F) != 0) \
|
&& ((insn)->membership & INSN_LOONGSON_2F) != 0) \
|
||||||
|
|| (cpu == CPU_LOONGSON_3A \
|
||||||
|
&& ((insn)->membership & INSN_LOONGSON_3A) != 0) \
|
||||||
|| (cpu == CPU_OCTEON \
|
|| (cpu == CPU_OCTEON \
|
||||||
&& ((insn)->membership & INSN_OCTEON) != 0) \
|
&& ((insn)->membership & INSN_OCTEON) != 0) \
|
||||||
|| (cpu == CPU_XLR && ((insn)->membership & INSN_XLR) != 0) \
|
|| (cpu == CPU_XLR && ((insn)->membership & INSN_XLR) != 0) \
|
||||||
|
|
Loading…
Reference in New Issue