diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2005-03-09 09:53:50 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2005-03-09 09:53:50 +0000 |
commit | 11db99f84731d2c55bd7b055c52fc7168c365e96 (patch) | |
tree | e4d17544449088754d4e3afce0ba6bee9e25e637 | |
parent | 7d8e00cf78a71a5a319f43d030597edfe01c266d (diff) | |
download | gdb-11db99f84731d2c55bd7b055c52fc7168c365e96.zip gdb-11db99f84731d2c55bd7b055c52fc7168c365e96.tar.gz gdb-11db99f84731d2c55bd7b055c52fc7168c365e96.tar.bz2 |
* config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
(MAX_NOPS): Bump to 4.
(mips_fix_vr4130): New variable.
(nops_for_vr4130): New function.
(nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
nops_for_vr4130 if working around VR4130 errata.
(OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
(md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
(md_parse_option): Handle them.
(md_show_usage): Print them.
* doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
-rw-r--r-- | gas/doc/c-mips.texi | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gas/doc/c-mips.texi b/gas/doc/c-mips.texi index b62b7eb..97469fe 100644 --- a/gas/doc/c-mips.texi +++ b/gas/doc/c-mips.texi @@ -129,6 +129,10 @@ Insert nops to work around certain VR4120 errata. This option is intended to be used on GCC-generated code: it is not designed to catch all problems in hand-written assembler code. +@item -mfix-vr4130 +@itemx -no-mfix-vr4130 +Insert nops to work around the VR4130 @samp{mflo}/@samp{mfhi} errata. + @item -m4010 @itemx -no-m4010 Generate code for the LSI @sc{r4010} chip. This tells the assembler to diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 508fc80..8750878 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -545,6 +545,7 @@ if { [istarget mips*-*-*] } then { run_dump_test "vr4111" run_dump_test "vr4120" run_dump_test "vr4120-2" + run_dump_test "vr4130" run_dump_test "vr5400" run_dump_test "vr5500" run_dump_test "rm7000" |