diff options
author | Chenghua Xu <paul.hua.gm@gmail.com> | 2018-08-29 19:57:39 +0800 |
---|---|---|
committer | Chenghua Xu <paul.hua.gm@gmail.com> | 2018-08-29 19:57:39 +0800 |
commit | bdc6c06e3b08ec48ec5ee2174dedc846969c36fd (patch) | |
tree | d31a198a967ebede9f80e0cf4d07aae050a05be9 /bfd | |
parent | 716c08de28589a5560b3337f1b935ed84a49b5e5 (diff) | |
download | gdb-bdc6c06e3b08ec48ec5ee2174dedc846969c36fd.zip gdb-bdc6c06e3b08ec48ec5ee2174dedc846969c36fd.tar.gz gdb-bdc6c06e3b08ec48ec5ee2174dedc846969c36fd.tar.bz2 |
[MIPS/GAS] Split Loongson EXT Instructions from loongson3a.
bfd/
* elfxx-mips.c (infer_mips_abiflags): Use ases instead of
isa_ext for infer ABI flags.
(print_mips_ases): Add Loongson EXT extension.
binutils/
* readelf.c (print_mips_ases): Add Loongson EXT extension.
elfcpp/
* mips.h (AFL_ASE_LOONGSON_EXT): New enum.
gas/
* NEWS: Mention Loongson EXTensions (EXT) support.
* config/tc-mips.c (options): Add OPTION_LOONGSON_EXT and
OPTION_NO_LOONGSON_EXT.
(md_longopts): Likewise.
(mips_ases): Define availability for EXT.
(mips_convert_ase_flags): Map ASE_LOONGSON_EXT to
AFL_ASE_LOONGSON_EXT.
(mips_cpu_info_table): Add ASE_LOONGSON_EXT for loongson3a.
(md_show_usage): Add help for -mloongson-ext and
-mno-loongson-ext.
* doc/as.texi: Document -mloongson-ext, -mno-loongson-ext.
* doc/c-mips.texi: Document -mloongson-ext, -mno-loongson-ext,
.set loongson-ext and .set noloongson-ext.
* testsuite/gas/mips/loongson-mmi.d: Add ASE flag.
include/
* elf/mips.h (AFL_ASE_LOONGSON_EXT): New macro.
(AFL_ASE_MASK): Update to include AFL_ASE_LOONGSON_EXT.
* opcode/mips.h (ASE_LOONGSON_EXT): New macro.
opcodes/
* mips-dis.c (mips_arch_choices): Add EXT to loongson3a
descriptors.
(parse_mips_ase_option): Handle -M loongson-ext option.
(print_mips_disassembler_options): Document -M loongson-ext.
* mips-opc.c (IL3A): Delete.
* mips-opc.c (LEXT): New macro.
(mips_opcodes): Replace IL2F|IL3A marking with LEXT for EXT
instructions.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0f292a5..bf32a61 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com> + * elfxx-mips.c (infer_mips_abiflags): Use ases instead of + isa_ext for infer ABI flags. + (print_mips_ases): Add Loongson EXT extension. + +2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com> + * elfxx-mips.c (print_mips_ases): Add CAM extension. 2018-08-27 H.J. Lu <hongjiu.lu@intel.com> diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 80cc8c0..e4275d7 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -14250,7 +14250,7 @@ infer_mips_abiflags (bfd *abfd, Elf_Internal_ABIFlags_v0* abiflags) && abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_SOFT && abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_64A && abiflags->isa_level >= 32 - && abiflags->isa_ext != AFL_EXT_LOONGSON_3A) + && abiflags->ases != AFL_ASE_LOONGSON_EXT) abiflags->flags1 |= AFL_FLAGS1_ODDSPREG; } @@ -15679,6 +15679,8 @@ print_mips_ases (FILE *file, unsigned int mask) fputs ("\n\tLoongson MMI ASE", file); if (mask & AFL_ASE_LOONGSON_CAM) fputs ("\n\tLoongson CAM ASE", file); + if (mask & AFL_ASE_LOONGSON_EXT) + fputs ("\n\tLoongson EXT ASE", file); if (mask == 0) fprintf (file, "\n\t%s", _("None")); else if ((mask & ~AFL_ASE_MASK) != 0) |