This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Xtensa] use include/xtensa-config.h imported from binutils
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jun 2003 17:17:59 -0700
- Subject: [Xtensa] use include/xtensa-config.h imported from binutils
- Organization: Tensilica, Inc.
This patch imports the xtensa-config.h header from binutils into the top-level
include directory, and changes the Xtensa port to use the new version in
place of the old one in the gcc/config/xtensa directory. Tested with the
xtensa-elf target and committed on the mainline.
include ChangeLog:
2003-06-30 Bob Wilson <bob.wilson@acm.org>
* xtensa-config.h: New file imported from binutils.
gcc ChangeLog:
2003-06-30 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
top-level include directory.
* config/xtensa/lib2funcs.S: Likewise.
* config/xtensa/xtensa.h: Likewise.
* config/xtensa/xtensa-config.h: Remove.
* doc/install.texi: Update location of "xtensa-config.h" header.
*** /dev/null Thu Apr 11 07:25:15 2002
--- xtensa-config.h Mon Jun 30 15:06:51 2003
***************
*** 0 ****
--- 1,68 ----
+ /* Xtensa configuration settings.
+ Copyright (C) 2001,2002,2003 Free Software Foundation, Inc.
+ Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+ #ifndef XTENSA_CONFIG_H
+ #define XTENSA_CONFIG_H
+
+ /* The macros defined here match those with the same names in the Xtensa
+ compile-time HAL (Hardware Abstraction Layer). Please refer to the
+ Xtensa System Software Reference Manual for documentation of these
+ macros. */
+
+ #define XCHAL_HAVE_BE 1
+ #define XCHAL_HAVE_DENSITY 1
+ #define XCHAL_HAVE_CONST16 0
+ #define XCHAL_HAVE_ABS 1
+ #define XCHAL_HAVE_ADDX 1
+ #define XCHAL_HAVE_L32R 1
+ #define XCHAL_HAVE_MAC16 0
+ #define XCHAL_HAVE_MUL16 0
+ #define XCHAL_HAVE_MUL32 0
+ #define XCHAL_HAVE_DIV32 0
+ #define XCHAL_HAVE_NSA 1
+ #define XCHAL_HAVE_MINMAX 0
+ #define XCHAL_HAVE_SEXT 0
+ #define XCHAL_HAVE_LOOPS 1
+ #define XCHAL_HAVE_BOOLEANS 0
+ #define XCHAL_HAVE_FP 0
+ #define XCHAL_HAVE_FP_DIV 0
+ #define XCHAL_HAVE_FP_RECIP 0
+ #define XCHAL_HAVE_FP_SQRT 0
+ #define XCHAL_HAVE_FP_RSQRT 0
+ #define XCHAL_HAVE_WINDOWED 1
+
+ #define XCHAL_ICACHE_SIZE 8192
+ #define XCHAL_DCACHE_SIZE 8192
+ #define XCHAL_ICACHE_LINESIZE 16
+ #define XCHAL_DCACHE_LINESIZE 16
+ #define XCHAL_ICACHE_LINEWIDTH 4
+ #define XCHAL_DCACHE_LINEWIDTH 4
+ #define XCHAL_DCACHE_IS_WRITEBACK 0
+
+ #define XCHAL_HAVE_MMU 1
+ #define XCHAL_MMU_MIN_PTE_PAGE_SIZE 12
+
+ #define XCHAL_HAVE_DEBUG 1
+ #define XCHAL_NUM_IBREAK 2
+ #define XCHAL_NUM_DBREAK 2
+ #define XCHAL_DEBUGLEVEL 4
+
+ #define XCHAL_EXTRA_SA_SIZE 0
+ #define XCHAL_EXTRA_SA_ALIGN 1
+
+ #endif /* !XTENSA_CONFIG_H */
Index: config/xtensa/lib1funcs.asm
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/lib1funcs.asm,v
retrieving revision 1.3
diff -c -3 -r1.3 lib1funcs.asm
*** config/xtensa/lib1funcs.asm 20 May 2003 23:39:09 -0000 1.3
--- config/xtensa/lib1funcs.asm 1 Jul 2003 00:08:54 -0000
***************
*** 28,34 ****
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
! #include "xtensa/xtensa-config.h"
# Define macros for the ABS and ADDX* instructions to handle cases
# where they are not included in the Xtensa processor configuration.
--- 28,34 ----
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
! #include "xtensa-config.h"
# Define macros for the ABS and ADDX* instructions to handle cases
# where they are not included in the Xtensa processor configuration.
Index: config/xtensa/lib2funcs.S
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/lib2funcs.S,v
retrieving revision 1.5
diff -c -3 -r1.5 lib2funcs.S
*** config/xtensa/lib2funcs.S 14 May 2003 18:37:19 -0000 1.5
--- config/xtensa/lib2funcs.S 1 Jul 2003 00:08:54 -0000
***************
*** 28,34 ****
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
! #include "xtensa/xtensa-config.h"
/* __xtensa_libgcc_window_spill: This function flushes out all but the
current register window. This is used to set up the stack so that
--- 28,34 ----
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
! #include "xtensa-config.h"
/* __xtensa_libgcc_window_spill: This function flushes out all but the
current register window. This is used to set up the stack so that
cvs server: config/xtensa/xtensa-config.h was removed, no comparison available
Index: config/xtensa/xtensa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.37
diff -c -3 -r1.37 xtensa.h
*** config/xtensa/xtensa.h 14 Jun 2003 21:47:45 -0000 1.37
--- config/xtensa/xtensa.h 1 Jul 2003 00:08:54 -0000
***************
*** 20,26 ****
02111-1307, USA. */
/* Get Xtensa configuration settings */
! #include "xtensa/xtensa-config.h"
/* Standard GCC variables that we reference. */
extern int current_function_calls_alloca;
--- 20,26 ----
02111-1307, USA. */
/* Get Xtensa configuration settings */
! #include "xtensa-config.h"
/* Standard GCC variables that we reference. */
extern int current_function_calls_alloca;
Index: doc/install.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/install.texi,v
retrieving revision 1.207
diff -c -3 -r1.207 install.texi
*** doc/install.texi 29 Jun 2003 23:10:28 -0000 1.207
--- doc/install.texi 1 Jul 2003 00:08:56 -0000
***************
*** 3324,3330 ****
through inline assembly.
The Xtensa configuration information must be specified prior to
! building GCC@. The @file{gcc/config/xtensa/xtensa-config.h} header
file contains the configuration information. If you created your
own Xtensa configuration with the Xtensa Processor Generator, the
downloaded files include a customized copy of this header file,
--- 3324,3330 ----
through inline assembly.
The Xtensa configuration information must be specified prior to
! building GCC@. The @file{include/xtensa-config.h} header
file contains the configuration information. If you created your
own Xtensa configuration with the Xtensa Processor Generator, the
downloaded files include a customized copy of this header file,