diff options
author | Nick Clifton <nickc@redhat.com> | 2010-11-11 10:23:39 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2010-11-11 10:23:39 +0000 |
commit | fd50354116e30413803893c41178623d156f28de (patch) | |
tree | b403df328a245e6d5ebe2a43b242d7123638a5c0 /bfd | |
parent | d5906a46f1821b90f03c817384383f6e77b15a08 (diff) | |
download | gdb-fd50354116e30413803893c41178623d156f28de.zip gdb-fd50354116e30413803893c41178623d156f28de.tar.gz gdb-fd50354116e30413803893c41178623d156f28de.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 10 | ||||
-rw-r--r-- | bfd/archures.c | 1 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 8 |
4 files changed, 20 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e87744a..aab75e9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2010-11-11 Mingming Sun <mingm.sun@gmail.com> + + * 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. + 2010-11-10 Richard Sandiford <richard.sandiford@linaro.org> * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused diff --git a/bfd/archures.c b/bfd/archures.c index 1867154..1d61ae3 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -173,6 +173,7 @@ DESCRIPTION .#define bfd_mach_mips5 5 .#define bfd_mach_mips_loongson_2e 3001 .#define bfd_mach_mips_loongson_2f 3002 +.#define bfd_mach_mips_loongson_3a 3003 .#define bfd_mach_mips_sb1 12310201 {* octal 'SB', 01 *} .#define bfd_mach_mips_octeon 6501 .#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *} diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index f3e2b45..e7805b6 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1860,6 +1860,7 @@ enum bfd_architecture #define bfd_mach_mips5 5 #define bfd_mach_mips_loongson_2e 3001 #define bfd_mach_mips_loongson_2f 3002 +#define bfd_mach_mips_loongson_3a 3003 #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ #define bfd_mach_mips_octeon 6501 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 4718dd4..cfbb06e 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -5946,6 +5946,9 @@ _bfd_elf_mips_mach (flagword flags) case E_MIPS_MACH_LS2F: return bfd_mach_mips_loongson_2f; + case E_MIPS_MACH_LS3A: + return bfd_mach_mips_loongson_3a; + case E_MIPS_MACH_OCTEON: return bfd_mach_mips_octeon; @@ -10556,6 +10559,10 @@ mips_set_isa_flags (bfd *abfd) val = E_MIPS_ARCH_3 | E_MIPS_MACH_LS2F; break; + case bfd_mach_mips_loongson_3a: + val = E_MIPS_ARCH_64 | E_MIPS_MACH_LS3A; + break; + case bfd_mach_mips_sb1: val = E_MIPS_ARCH_64 | E_MIPS_MACH_SB1; break; @@ -12258,6 +12265,7 @@ static const struct mips_mach_extension mips_mach_extensions[] = { { bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 }, { bfd_mach_mips_sb1, bfd_mach_mipsisa64 }, { bfd_mach_mips_xlr, bfd_mach_mipsisa64 }, + { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64 }, /* MIPS V extensions. */ { bfd_mach_mipsisa64, bfd_mach_mips5 }, |