tie.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * This header file describes this specific Xtensa processor's TIE extensions
  3. * that extend basic Xtensa core functionality. It is customized to this
  4. * Xtensa processor configuration.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (C) 1999-2007 Tensilica Inc.
  11. */
  12. #ifndef _XTENSA_CORE_TIE_H
  13. #define _XTENSA_CORE_TIE_H
  14. #define XCHAL_CP_NUM 0 /* number of coprocessors */
  15. #define XCHAL_CP_MAX 0 /* max CP ID + 1 (0 if none) */
  16. #define XCHAL_CP_MASK 0x00 /* bitmask of all CPs by ID */
  17. #define XCHAL_CP_PORT_MASK 0x00 /* bitmask of only port CPs */
  18. /* Filler info for unassigned coprocessors, to simplify arrays etc: */
  19. #define XCHAL_NCP_SA_SIZE 0
  20. #define XCHAL_NCP_SA_ALIGN 1
  21. #define XCHAL_CP0_SA_SIZE 0
  22. #define XCHAL_CP0_SA_ALIGN 1
  23. #define XCHAL_CP1_SA_SIZE 0
  24. #define XCHAL_CP1_SA_ALIGN 1
  25. #define XCHAL_CP2_SA_SIZE 0
  26. #define XCHAL_CP2_SA_ALIGN 1
  27. #define XCHAL_CP3_SA_SIZE 0
  28. #define XCHAL_CP3_SA_ALIGN 1
  29. #define XCHAL_CP4_SA_SIZE 0
  30. #define XCHAL_CP4_SA_ALIGN 1
  31. #define XCHAL_CP5_SA_SIZE 0
  32. #define XCHAL_CP5_SA_ALIGN 1
  33. #define XCHAL_CP6_SA_SIZE 0
  34. #define XCHAL_CP6_SA_ALIGN 1
  35. #define XCHAL_CP7_SA_SIZE 0
  36. #define XCHAL_CP7_SA_ALIGN 1
  37. /* Save area for non-coprocessor optional and custom (TIE) state: */
  38. #define XCHAL_NCP_SA_SIZE 0
  39. #define XCHAL_NCP_SA_ALIGN 1
  40. /* Total save area for optional and custom state (NCP + CPn): */
  41. #define XCHAL_TOTAL_SA_SIZE 0 /* with 16-byte align padding */
  42. #define XCHAL_TOTAL_SA_ALIGN 1 /* actual minimum alignment */
  43. #define XCHAL_NCP_SA_NUM 0
  44. #define XCHAL_NCP_SA_LIST(s)
  45. #define XCHAL_CP0_SA_NUM 0
  46. #define XCHAL_CP0_SA_LIST(s)
  47. #define XCHAL_CP1_SA_NUM 0
  48. #define XCHAL_CP1_SA_LIST(s)
  49. #define XCHAL_CP2_SA_NUM 0
  50. #define XCHAL_CP2_SA_LIST(s)
  51. #define XCHAL_CP3_SA_NUM 0
  52. #define XCHAL_CP3_SA_LIST(s)
  53. #define XCHAL_CP4_SA_NUM 0
  54. #define XCHAL_CP4_SA_LIST(s)
  55. #define XCHAL_CP5_SA_NUM 0
  56. #define XCHAL_CP5_SA_LIST(s)
  57. #define XCHAL_CP6_SA_NUM 0
  58. #define XCHAL_CP6_SA_LIST(s)
  59. #define XCHAL_CP7_SA_NUM 0
  60. #define XCHAL_CP7_SA_LIST(s)
  61. /* Byte length of instruction from its first nibble (op0 field), per FLIX. */
  62. #define XCHAL_OP0_FORMAT_LENGTHS 3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,3
  63. #endif /*_XTENSA_CORE_TIE_H*/