specreg.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Xtensa Special Register symbolic names
  3. */
  4. /* $Id: specreg.h,v 1.2 2003/03/07 19:15:18 joetaylor Exp $ */
  5. /*
  6. * Copyright (c) 2003 Tensilica, Inc. All Rights Reserved.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of version 2.1 of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it would be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. *
  16. * Further, this software is distributed without any warranty that it is
  17. * free of the rightful claim of any third person regarding infringement
  18. * or the like. Any license provided herein, whether implied or
  19. * otherwise, applies only to this software file. Patent licenses, if
  20. * any, provided herein do not apply to combinations of this program with
  21. * other software, or any other product whatsoever.
  22. *
  23. * You should have received a copy of the GNU Lesser General Public
  24. * License along with this program; if not, write the Free Software
  25. * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
  26. * USA.
  27. */
  28. #ifndef XTENSA_SPECREG_H
  29. #define XTENSA_SPECREG_H
  30. /* Include these special register bitfield definitions, for historical reasons: */
  31. #include <xtensa/corebits.h>
  32. /* Special registers: */
  33. #define LBEG 0
  34. #define LEND 1
  35. #define LCOUNT 2
  36. #define SAR 3
  37. #define WINDOWBASE 72
  38. #define WINDOWSTART 73
  39. #define PTEVADDR 83
  40. #define RASID 90
  41. #define ITLBCFG 91
  42. #define DTLBCFG 92
  43. #define IBREAKENABLE 96
  44. #define DDR 104
  45. #define IBREAKA_0 128
  46. #define IBREAKA_1 129
  47. #define DBREAKA_0 144
  48. #define DBREAKA_1 145
  49. #define DBREAKC_0 160
  50. #define DBREAKC_1 161
  51. #define EPC_1 177
  52. #define EPC_2 178
  53. #define EPC_3 179
  54. #define EPC_4 180
  55. #define DEPC 192
  56. #define EPS_2 194
  57. #define EPS_3 195
  58. #define EPS_4 196
  59. #define EXCSAVE_1 209
  60. #define EXCSAVE_2 210
  61. #define EXCSAVE_3 211
  62. #define EXCSAVE_4 212
  63. #define INTERRUPT 226
  64. #define INTENABLE 228
  65. #define PS 230
  66. #define EXCCAUSE 232
  67. #define DEBUGCAUSE 233
  68. #define CCOUNT 234
  69. #define ICOUNT 236
  70. #define ICOUNTLEVEL 237
  71. #define EXCVADDR 238
  72. #define CCOMPARE_0 240
  73. #define CCOMPARE_1 241
  74. #define CCOMPARE_2 242
  75. #define MISC_REG_0 244
  76. #define MISC_REG_1 245
  77. /* Special cases (bases of special register series): */
  78. #define IBREAKA 128
  79. #define DBREAKA 144
  80. #define DBREAKC 160
  81. #define EPC 176
  82. #define EPS 192
  83. #define EXCSAVE 208
  84. #define CCOMPARE 240
  85. /* Special names for read-only and write-only interrupt registers: */
  86. #define INTREAD 226
  87. #define INTSET 226
  88. #define INTCLEAR 227
  89. #endif /* XTENSA_SPECREG_H */