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/elfxx-mips.c | |
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/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 }, |