This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] [nios2] Rename "fstatus" control register to "eccinj"


I've checked in the attached patch for the Nios II backend at the request of Altera.

According to Altera, the "fstatus" name for control register 11 has never been publicly documented or used for anything, and for a forthcoming hardware revision they would like to rename this register "eccinj". Since there should be no user code relying on the "fstatus" name, there's no concern about backward compatibility or need to maintain both names.

-Sandra
2013-04-24  Sandra Loosemore  <sandra@codesourcery.com>

	gas/
	* config/tc-nios2.c (nios2_control_register_arg_p): Rename
	"fstatus" control register to "eccinj".

	opcodes/
	* nios2-opc.c (nios2_builtin_reg): Rename "fstatus" control register
	to "eccinj".
Index: gas/config/tc-nios2.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-nios2.c,v
retrieving revision 1.3
diff -u -p -r1.3 tc-nios2.c
--- gas/config/tc-nios2.c	12 Mar 2013 19:18:57 -0000	1.3
+++ gas/config/tc-nios2.c	24 Apr 2013 20:33:04 -0000
@@ -318,7 +318,7 @@ nios2_control_register_arg_p (const char
 	  || strprefix (str, "pteaddr")
 	  || strprefix (str, "tlbacc")
 	  || strprefix (str, "tlbmisc")
-	  || strprefix (str, "fstatus")
+	  || strprefix (str, "eccinj")
 	  || strprefix (str, "config")
 	  || strprefix (str, "mpubase")
 	  || strprefix (str, "mpuacc")
Index: opcodes/nios2-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/nios2-opc.c,v
retrieving revision 1.4
diff -u -p -r1.4 nios2-opc.c
--- opcodes/nios2-opc.c	12 Mar 2013 02:41:26 -0000	1.4
+++ opcodes/nios2-opc.c	24 Apr 2013 20:33:04 -0000
@@ -86,7 +86,7 @@ const struct nios2_reg nios2_builtin_reg
   {"pteaddr", 8},
   {"tlbacc", 9},
   {"tlbmisc", 10},
-  {"fstatus", 11},
+  {"eccinj", 11},
   {"badaddr", 12},
   {"config", 13},
   {"mpubase", 14},

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]