xtensa-config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Xtensa configuration settings.
  2. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
  3. Free Software Foundation, Inc.
  4. Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica.
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with the GNU C Library; if not, see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef XTENSA_CONFIG_H
  17. #define XTENSA_CONFIG_H
  18. /* The macros defined here match those with the same names in the Xtensa
  19. compile-time HAL (Hardware Abstraction Layer). Please refer to the
  20. Xtensa System Software Reference Manual for documentation of these
  21. macros. */
  22. /* The following macros reflect the default expectations for Xtensa
  23. processor configurations that can run glibc. If you want to try
  24. building glibc for an Xtensa configuration that is missing these
  25. options, you will at least need to change the values of these
  26. macros. */
  27. #undef XCHAL_HAVE_NSA
  28. #define XCHAL_HAVE_NSA 1
  29. #undef XCHAL_HAVE_LOOPS
  30. #define XCHAL_HAVE_LOOPS 1
  31. /* Assume the maximum number of AR registers. This currently only affects
  32. the __window_spill function, and it is always safe to flush extra. */
  33. #undef XCHAL_NUM_AREGS
  34. #define XCHAL_NUM_AREGS 64
  35. #undef XCHAL_HAVE_S32C1I
  36. #define XCHAL_HAVE_S32C1I 1
  37. #undef XCHAL_HAVE_EXCLUSIVE
  38. #define XCHAL_HAVE_EXCLUSIVE 0
  39. #endif /* !XTENSA_CONFIG_H */