1
2
3
4
5
6
7
8
9
10 #ifndef _XTENSA_CORE_CONFIGURATION_H
11 #define _XTENSA_CORE_CONFIGURATION_H
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 #define XCHAL_HAVE_BE 0
29 #define XCHAL_HAVE_WINDOWED 1
30 #define XCHAL_NUM_AREGS 32
31 #define XCHAL_NUM_AREGS_LOG2 5
32 #define XCHAL_MAX_INSTRUCTION_SIZE 8
33 #define XCHAL_HAVE_DEBUG 1
34 #define XCHAL_HAVE_DENSITY 1
35 #define XCHAL_HAVE_LOOPS 1
36 #define XCHAL_HAVE_NSA 1
37 #define XCHAL_HAVE_MINMAX 1
38 #define XCHAL_HAVE_SEXT 1
39 #define XCHAL_HAVE_CLAMPS 1
40 #define XCHAL_HAVE_MUL16 1
41 #define XCHAL_HAVE_MUL32 1
42 #define XCHAL_HAVE_MUL32_HIGH 0
43 #define XCHAL_HAVE_DIV32 0
44 #define XCHAL_HAVE_L32R 1
45 #define XCHAL_HAVE_ABSOLUTE_LITERALS 1
46 #define XCHAL_HAVE_CONST16 0
47 #define XCHAL_HAVE_ADDX 1
48 #define XCHAL_HAVE_WIDE_BRANCHES 0
49 #define XCHAL_HAVE_PREDICTED_BRANCHES 0
50 #define XCHAL_HAVE_CALL4AND12 1
51 #define XCHAL_HAVE_ABS 1
52
53
54 #define XCHAL_HAVE_RELEASE_SYNC 1
55 #define XCHAL_HAVE_S32C1I 1
56 #define XCHAL_HAVE_SPECULATION 0
57 #define XCHAL_HAVE_FULL_RESET 1
58 #define XCHAL_NUM_CONTEXTS 1
59 #define XCHAL_NUM_MISC_REGS 2
60 #define XCHAL_HAVE_TAP_MASTER 0
61 #define XCHAL_HAVE_PRID 1
62 #define XCHAL_HAVE_EXTERN_REGS 1
63 #define XCHAL_HAVE_MP_INTERRUPTS 1
64 #define XCHAL_HAVE_MP_RUNSTALL 1
65 #define XCHAL_HAVE_THREADPTR 1
66 #define XCHAL_HAVE_BOOLEANS 1
67 #define XCHAL_HAVE_CP 1
68 #define XCHAL_CP_MAXCFG 2
69 #define XCHAL_HAVE_MAC16 0
70 #define XCHAL_HAVE_VECTORFPU2005 0
71 #define XCHAL_HAVE_FP 0
72 #define XCHAL_HAVE_DFP 0
73 #define XCHAL_HAVE_DFP_accel 0
74 #define XCHAL_HAVE_VECTRA1 0
75 #define XCHAL_HAVE_VECTRALX 0
76 #define XCHAL_HAVE_HIFIPRO 0
77 #define XCHAL_HAVE_HIFI2 1
78 #define XCHAL_HAVE_CONNXD2 0
79
80
81
82
83
84
85 #define XCHAL_NUM_WRITEBUFFER_ENTRIES 8
86 #define XCHAL_INST_FETCH_WIDTH 8
87 #define XCHAL_DATA_WIDTH 8
88
89 #define XCHAL_UNALIGNED_LOAD_EXCEPTION 1
90 #define XCHAL_UNALIGNED_STORE_EXCEPTION 1
91 #define XCHAL_UNALIGNED_LOAD_HW 0
92 #define XCHAL_UNALIGNED_STORE_HW 0
93
94 #define XCHAL_SW_VERSION 800000
95
96 #define XCHAL_CORE_ID "test_mmuhifi_c3"
97
98
99
100 #define XCHAL_CORE_DESCRIPTION "test_mmuhifi_c3"
101 #define XCHAL_BUILD_UNIQUE_ID 0x00005A6A
102
103
104
105
106 #define XCHAL_HW_CONFIGID0 0xC1B3CBFE
107 #define XCHAL_HW_CONFIGID1 0x10405A6A
108 #define XCHAL_HW_VERSION_NAME "LX3.0.0"
109 #define XCHAL_HW_VERSION_MAJOR 2300
110 #define XCHAL_HW_VERSION_MINOR 0
111 #define XCHAL_HW_VERSION 230000
112 #define XCHAL_HW_REL_LX3 1
113 #define XCHAL_HW_REL_LX3_0 1
114 #define XCHAL_HW_REL_LX3_0_0 1
115 #define XCHAL_HW_CONFIGID_RELIABLE 1
116
117 #define XCHAL_HW_MIN_VERSION_MAJOR 2300
118 #define XCHAL_HW_MIN_VERSION_MINOR 0
119 #define XCHAL_HW_MIN_VERSION 230000
120 #define XCHAL_HW_MAX_VERSION_MAJOR 2300
121 #define XCHAL_HW_MAX_VERSION_MINOR 0
122 #define XCHAL_HW_MAX_VERSION 230000
123
124
125
126
127
128
129 #define XCHAL_ICACHE_LINESIZE 32
130 #define XCHAL_DCACHE_LINESIZE 32
131 #define XCHAL_ICACHE_LINEWIDTH 5
132 #define XCHAL_DCACHE_LINEWIDTH 5
133
134 #define XCHAL_ICACHE_SIZE 16384
135 #define XCHAL_DCACHE_SIZE 16384
136
137 #define XCHAL_DCACHE_IS_WRITEBACK 1
138 #define XCHAL_DCACHE_IS_COHERENT 1
139
140
141
142
143
144
145
146
147
148 #ifndef XTENSA_HAL_NON_PRIVILEGED_ONLY
149
150
151
152
153
154 #define XCHAL_HAVE_PIF 1
155
156
157
158
159 #define XCHAL_ICACHE_SETWIDTH 8
160 #define XCHAL_DCACHE_SETWIDTH 8
161
162
163 #define XCHAL_ICACHE_WAYS 2
164 #define XCHAL_DCACHE_WAYS 2
165
166
167 #define XCHAL_ICACHE_LINE_LOCKABLE 0
168 #define XCHAL_DCACHE_LINE_LOCKABLE 0
169 #define XCHAL_ICACHE_ECC_PARITY 0
170 #define XCHAL_DCACHE_ECC_PARITY 0
171
172
173 #define XCHAL_ICACHE_ACCESS_SIZE 8
174 #define XCHAL_DCACHE_ACCESS_SIZE 8
175
176
177 #define XCHAL_CA_BITS 4
178
179
180
181
182
183
184 #define XCHAL_NUM_INSTROM 0
185 #define XCHAL_NUM_INSTRAM 0
186 #define XCHAL_NUM_DATAROM 0
187 #define XCHAL_NUM_DATARAM 0
188 #define XCHAL_NUM_URAM 0
189 #define XCHAL_NUM_XLMI 0
190
191
192
193
194
195
196 #define XCHAL_HAVE_INTERRUPTS 1
197 #define XCHAL_HAVE_HIGHPRI_INTERRUPTS 1
198 #define XCHAL_HAVE_NMI 0
199 #define XCHAL_HAVE_CCOUNT 1
200 #define XCHAL_NUM_TIMERS 2
201 #define XCHAL_NUM_INTERRUPTS 12
202 #define XCHAL_NUM_INTERRUPTS_LOG2 4
203 #define XCHAL_NUM_EXTINTERRUPTS 9
204 #define XCHAL_NUM_INTLEVELS 2
205
206 #define XCHAL_EXCM_LEVEL 1
207
208
209
210 #define XCHAL_INTLEVEL1_MASK 0x00000FFF
211 #define XCHAL_INTLEVEL2_MASK 0x00000000
212 #define XCHAL_INTLEVEL3_MASK 0x00000000
213 #define XCHAL_INTLEVEL4_MASK 0x00000000
214 #define XCHAL_INTLEVEL5_MASK 0x00000000
215 #define XCHAL_INTLEVEL6_MASK 0x00000000
216 #define XCHAL_INTLEVEL7_MASK 0x00000000
217
218
219 #define XCHAL_INTLEVEL1_ANDBELOW_MASK 0x00000FFF
220 #define XCHAL_INTLEVEL2_ANDBELOW_MASK 0x00000FFF
221 #define XCHAL_INTLEVEL3_ANDBELOW_MASK 0x00000FFF
222 #define XCHAL_INTLEVEL4_ANDBELOW_MASK 0x00000FFF
223 #define XCHAL_INTLEVEL5_ANDBELOW_MASK 0x00000FFF
224 #define XCHAL_INTLEVEL6_ANDBELOW_MASK 0x00000FFF
225 #define XCHAL_INTLEVEL7_ANDBELOW_MASK 0x00000FFF
226
227
228 #define XCHAL_INT0_LEVEL 1
229 #define XCHAL_INT1_LEVEL 1
230 #define XCHAL_INT2_LEVEL 1
231 #define XCHAL_INT3_LEVEL 1
232 #define XCHAL_INT4_LEVEL 1
233 #define XCHAL_INT5_LEVEL 1
234 #define XCHAL_INT6_LEVEL 1
235 #define XCHAL_INT7_LEVEL 1
236 #define XCHAL_INT8_LEVEL 1
237 #define XCHAL_INT9_LEVEL 1
238 #define XCHAL_INT10_LEVEL 1
239 #define XCHAL_INT11_LEVEL 1
240 #define XCHAL_DEBUGLEVEL 2
241 #define XCHAL_HAVE_DEBUG_EXTERN_INT 1
242
243
244 #define XCHAL_INT0_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
245 #define XCHAL_INT1_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
246 #define XCHAL_INT2_TYPE XTHAL_INTTYPE_EXTERN_EDGE
247 #define XCHAL_INT3_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
248 #define XCHAL_INT4_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
249 #define XCHAL_INT5_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
250 #define XCHAL_INT6_TYPE XTHAL_INTTYPE_TIMER
251 #define XCHAL_INT7_TYPE XTHAL_INTTYPE_SOFTWARE
252 #define XCHAL_INT8_TYPE XTHAL_INTTYPE_TIMER
253 #define XCHAL_INT9_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
254 #define XCHAL_INT10_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
255 #define XCHAL_INT11_TYPE XTHAL_INTTYPE_EXTERN_LEVEL
256
257
258 #define XCHAL_INTTYPE_MASK_UNCONFIGURED 0xFFFFF000
259 #define XCHAL_INTTYPE_MASK_SOFTWARE 0x00000080
260 #define XCHAL_INTTYPE_MASK_EXTERN_EDGE 0x00000004
261 #define XCHAL_INTTYPE_MASK_EXTERN_LEVEL 0x00000E3B
262 #define XCHAL_INTTYPE_MASK_TIMER 0x00000140
263 #define XCHAL_INTTYPE_MASK_NMI 0x00000000
264 #define XCHAL_INTTYPE_MASK_WRITE_ERROR 0x00000000
265
266
267 #define XCHAL_TIMER0_INTERRUPT 6
268 #define XCHAL_TIMER1_INTERRUPT 8
269 #define XCHAL_TIMER2_INTERRUPT XTHAL_TIMER_UNCONFIGURED
270 #define XCHAL_TIMER3_INTERRUPT XTHAL_TIMER_UNCONFIGURED
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286 #define XCHAL_EXTINT0_NUM 0
287 #define XCHAL_EXTINT1_NUM 1
288 #define XCHAL_EXTINT2_NUM 2
289 #define XCHAL_EXTINT3_NUM 3
290 #define XCHAL_EXTINT4_NUM 4
291 #define XCHAL_EXTINT5_NUM 5
292 #define XCHAL_EXTINT6_NUM 9
293 #define XCHAL_EXTINT7_NUM 10
294 #define XCHAL_EXTINT8_NUM 11
295
296
297
298
299
300
301 #define XCHAL_XEA_VERSION 2
302
303
304
305 #define XCHAL_HAVE_XEA1 0
306 #define XCHAL_HAVE_XEA2 1
307 #define XCHAL_HAVE_XEAX 0
308 #define XCHAL_HAVE_EXCEPTIONS 1
309 #define XCHAL_HAVE_MEM_ECC_PARITY 0
310 #define XCHAL_HAVE_VECTOR_SELECT 1
311 #define XCHAL_HAVE_VECBASE 1
312 #define XCHAL_VECBASE_RESET_VADDR 0xD0000000
313 #define XCHAL_VECBASE_RESET_PADDR 0x00000000
314 #define XCHAL_RESET_VECBASE_OVERLAP 0
315
316 #define XCHAL_RESET_VECTOR0_VADDR 0xFE000000
317 #define XCHAL_RESET_VECTOR0_PADDR 0xFE000000
318 #define XCHAL_RESET_VECTOR1_VADDR 0xD8000500
319 #define XCHAL_RESET_VECTOR1_PADDR 0x00000500
320 #define XCHAL_RESET_VECTOR_VADDR 0xFE000000
321 #define XCHAL_RESET_VECTOR_PADDR 0xFE000000
322 #define XCHAL_USER_VECOFS 0x00000340
323 #define XCHAL_USER_VECTOR_VADDR 0xD0000340
324 #define XCHAL_USER_VECTOR_PADDR 0x00000340
325 #define XCHAL_KERNEL_VECOFS 0x00000300
326 #define XCHAL_KERNEL_VECTOR_VADDR 0xD0000300
327 #define XCHAL_KERNEL_VECTOR_PADDR 0x00000300
328 #define XCHAL_DOUBLEEXC_VECOFS 0x000003C0
329 #define XCHAL_DOUBLEEXC_VECTOR_VADDR 0xD00003C0
330 #define XCHAL_DOUBLEEXC_VECTOR_PADDR 0x000003C0
331 #define XCHAL_WINDOW_OF4_VECOFS 0x00000000
332 #define XCHAL_WINDOW_UF4_VECOFS 0x00000040
333 #define XCHAL_WINDOW_OF8_VECOFS 0x00000080
334 #define XCHAL_WINDOW_UF8_VECOFS 0x000000C0
335 #define XCHAL_WINDOW_OF12_VECOFS 0x00000100
336 #define XCHAL_WINDOW_UF12_VECOFS 0x00000140
337 #define XCHAL_WINDOW_VECTORS_VADDR 0xD0000000
338 #define XCHAL_WINDOW_VECTORS_PADDR 0x00000000
339 #define XCHAL_INTLEVEL2_VECOFS 0x00000280
340 #define XCHAL_INTLEVEL2_VECTOR_VADDR 0xD0000280
341 #define XCHAL_INTLEVEL2_VECTOR_PADDR 0x00000280
342 #define XCHAL_DEBUG_VECOFS XCHAL_INTLEVEL2_VECOFS
343 #define XCHAL_DEBUG_VECTOR_VADDR XCHAL_INTLEVEL2_VECTOR_VADDR
344 #define XCHAL_DEBUG_VECTOR_PADDR XCHAL_INTLEVEL2_VECTOR_PADDR
345
346
347
348
349
350
351 #define XCHAL_HAVE_OCD 1
352 #define XCHAL_NUM_IBREAK 0
353 #define XCHAL_NUM_DBREAK 0
354 #define XCHAL_HAVE_OCD_DIR_ARRAY 0
355
356
357
358
359
360
361
362
363 #define XCHAL_HAVE_TLBS 1
364 #define XCHAL_HAVE_SPANNING_WAY 0
365 #define XCHAL_HAVE_IDENTITY_MAP 0
366 #define XCHAL_HAVE_CACHEATTR 0
367 #define XCHAL_HAVE_MIMIC_CACHEATTR 0
368 #define XCHAL_HAVE_XLT_CACHEATTR 0
369 #define XCHAL_HAVE_PTP_MMU 1
370
371
372
373 #define XCHAL_ITLB_ARF_ENTRIES_LOG2 2
374 #define XCHAL_DTLB_ARF_ENTRIES_LOG2 2
375
376 #define XCHAL_MMU_ASID_BITS 8
377 #define XCHAL_MMU_RINGS 4
378 #define XCHAL_MMU_RING_BITS 2
379
380 #endif
381
382
383 #endif