]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Mar 2005 09:53:20 +0000 (09:53 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Mar 2005 09:53:20 +0000 (09:53 +0000)
(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.

gas/ChangeLog
gas/doc/c-mips.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/mips.exp

index d020a8f551c785c5d77ebae035b8b874142abdc3..cf373d82818d7c787d63ccb391655bfc31c59c34 100644 (file)
@@ -1,3 +1,17 @@
+2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
+
+       * 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.
+
 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/tc-mips.c (append_insn): Remove cop_interlocks test from
index b62b7eb2fc60a3764f78ea3c4633cef4630dded0..97469fe2449a199a0adee1caedb8433ef2bfc5b8 100644 (file)
@@ -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
index 793640dcf39a7be94dbab2ad8598cbd01ba05f3c..d70409a9ce4b7b6d6b6b064777e483daaad45166 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
+
+       * gas/mips/vr4130.[sd]: New test.
+       * gas/mips/mips.exp: Run it.
+
 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
 
        * gas/mips/relax-swap1-mips[12].d: Expect the delay slots of
index 508fc8079af07b40242378f8dddde3d9bb3543bf..875087845b9ab8b6c41b3a13d43a7cdbe2ecd4f9 100644 (file)
@@ -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"