This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[Xtensa] add more processor configuration settings


A forthcoming GDB patch requires some information about the Xtensa processor configuration that is not currently available. I've committed this patch to add that information. It also corrects the "THREADPTR" setting to be consistent with bfd/xtensa-modules.c.

Since this change is in the top-level include directory and is shared between GCC, Binutils and GDB, I've committed this change separately from the rest of the changes for GDB.

2008-02-11 Bob Wilson <bob.wilson@acm.org>

	* xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.
	(XCHAL_NUM_AREGS, XCHAL_MAX_INSTRUCTION_SIZE): New.

Index: xtensa-config.h
===================================================================
RCS file: /cvs/src/src/include/xtensa-config.h,v
retrieving revision 1.10
diff -u -r1.10 xtensa-config.h
--- xtensa-config.h	18 Jul 2007 18:52:30 -0000	1.10
+++ xtensa-config.h	11 Feb 2008 17:50:31 -0000
@@ -74,7 +74,7 @@
 #define XCHAL_HAVE_LOOPS		1
 
 #undef XCHAL_HAVE_THREADPTR
-#define XCHAL_HAVE_THREADPTR		1
+#define XCHAL_HAVE_THREADPTR		0
 
 #undef XCHAL_HAVE_RELEASE_SYNC
 #define XCHAL_HAVE_RELEASE_SYNC		0
@@ -103,6 +103,9 @@
 #undef XCHAL_HAVE_WINDOWED
 #define XCHAL_HAVE_WINDOWED		1
 
+#undef XCHAL_NUM_AREGS
+#define XCHAL_NUM_AREGS			64
+
 #undef XCHAL_HAVE_WIDE_BRANCHES
 #define XCHAL_HAVE_WIDE_BRANCHES	0
 
@@ -152,6 +155,9 @@
 #define XCHAL_DEBUGLEVEL		4
 
 
+#undef XCHAL_MAX_INSTRUCTION_SIZE
+#define XCHAL_MAX_INSTRUCTION_SIZE	3
+
 #undef XCHAL_INST_FETCH_WIDTH
 #define XCHAL_INST_FETCH_WIDTH		4
 

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