2 * Xtensa Special Register symbolic names
5 /* $Id: //depot/rel/Eaglenest/Xtensa/OS/include/xtensa/specreg.h#2 $ */
8 * Copyright (c) 2005-2011 Tensilica Inc.
10 * Permission is hereby granted, free of charge, to any person obtaining
11 * a copy of this software and associated documentation files (the
12 * "Software"), to deal in the Software without restriction, including
13 * without limitation the rights to use, copy, modify, merge, publish,
14 * distribute, sublicense, and/or sell copies of the Software, and to
15 * permit persons to whom the Software is furnished to do so, subject to
16 * the following conditions:
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 #ifndef XTENSA_SPECREG_H
31 #define XTENSA_SPECREG_H
33 /* Special registers: */
49 #define WINDOWSTART 73
54 #define IBREAKENABLE 96
91 #define INTREAD INTERRUPT /* alternate name for backward compatibility */
92 #define INTSET INTERRUPT /* alternate name for backward compatibility */
98 #define DEBUGCAUSE 233
102 #define ICOUNTLEVEL 237
104 #define CCOMPARE_0 240
105 #define CCOMPARE_1 241
106 #define CCOMPARE_2 242
107 #define MISC_REG_0 244
108 #define MISC_REG_1 245
109 #define MISC_REG_2 246
110 #define MISC_REG_3 247
112 /* Special cases (bases of special register series): */
123 /* Tensilica-defined user registers: */
125 /*#define ... 21..24 */ /* (545CK) */
126 /*#define ... 140..143 */ /* (545CK) */
127 #define EXPSTATE 230 /* Diamond */
128 #define THREADPTR 231 /* threadptr option */
129 #define FCR 232 /* FPU */
130 #define FSR 233 /* FPU */
131 #define AE_OVF_SAR 240 /* HiFi2 */
132 #define AE_BITHEAD 241 /* HiFi2 */
133 #define AE_TS_FTS_BU_BP 242 /* HiFi2 */
134 #define AE_SD_NO 243 /* HiFi2 */
135 #define VSAR 240 /* VectraLX */
136 #define ROUND_LO 242 /* VectraLX */
137 #define ROUND_HI 243 /* VectraLX */
138 #define CBEGIN 246 /* VectraLX */
139 #define CEND 247 /* VectraLX */
142 #endif /* XTENSA_SPECREG_H */