Fix a potential deadlock in some older Loongson 3A1000 MIPS processors.
authorPaul Hua <paul.hua.gm@gmail.com>
Tue, 19 Feb 2019 17:57:16 +0000 (17:57 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 19 Feb 2019 17:57:16 +0000 (17:57 +0000)
commit6f2117ba3892110badc65a7126b19cec211acfa2
treede74092f7e459a02ee1c1c04a2907250d2597650
parent179f2db0d9c397d7dd8a59907b84208b79f7f48c
Fix a potential deadlock in some older Loongson 3A1000 MIPS processors.

* NEWS: Mention -m[no-]fix-loongson3-llsc.
* configure.ac: Add --enable-mips-fix-loongson3-llsc.
Define DEFAULT_MIPS_FIX_LOONGSON3_LLSC.
* config.in: Regenerated.
* configure: Likewise.
* config/tc-mips.c (sync_insn, mips_fix_loongson3_llsc):
New variables.
(options): New OPTION_FIX_LOONGSON3_LLSC,
OPTION_NO_FIX_LOONGSON3_LLSC.
(md_longopts): Add -m[no-]fix-loongson3-llsc.
(md_begin): Initialize sync insn.
(fix_loongson3_llsc): New.
(append_insn): Call fix_loongson3_llsc.
(md_parse_option): Handle OPTION_FIX_LOONGSON3_LLSC,
OPTION_NO_FIX_LOONGSON3_LLSC.
(md_show_usage): Display -m[no-]fix-loongson3-llsc.
* doc/c-mips.texi: Document -m[no-]fix-loongson3-llsc,
--enable-mips-fix-loongson3-llsc=[yes|no].
gas/ChangeLog
gas/NEWS
gas/config.in
gas/config/tc-mips.c
gas/configure
gas/configure.ac
gas/doc/c-mips.texi