xtensa-config.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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, write to the Free
  15. Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
  16. Boston, MA 02110-1301, USA. */
  17. #ifndef XTENSA_CONFIG_H
  18. #define XTENSA_CONFIG_H
  19. /* The macros defined here match those with the same names in the Xtensa
  20. compile-time HAL (Hardware Abstraction Layer). Please refer to the
  21. Xtensa System Software Reference Manual for documentation of these
  22. macros. */
  23. /* The following macros reflect the default expectations for Xtensa
  24. processor configurations that can run glibc. If you want to try
  25. building glibc for an Xtensa configuration that is missing these
  26. options, you will at least need to change the values of these
  27. macros. */
  28. #undef XCHAL_HAVE_NSA
  29. #define XCHAL_HAVE_NSA 1
  30. #undef XCHAL_HAVE_LOOPS
  31. #define XCHAL_HAVE_LOOPS 1
  32. /* Assume the maximum number of AR registers. This currently only affects
  33. the __window_spill function, and it is always safe to flush extra. */
  34. #undef XCHAL_NUM_AREGS
  35. #define XCHAL_NUM_AREGS 64
  36. /* Set a default page size. This is currently needed when bootstrapping
  37. the runtime linker. See comments in dl-machine.h where this is used. */
  38. #undef XCHAL_MMU_MIN_PTE_PAGE_SIZE
  39. #define XCHAL_MMU_MIN_PTE_PAGE_SIZE 12
  40. #endif /* !XTENSA_CONFIG_H */