7 #define debug_level XCHAL_DEBUGLEVEL
8 #define debug_vector glue(level, XCHAL_DEBUGLEVEL)
9 #define EPC_DEBUG glue(epc, XCHAL_DEBUGLEVEL)
12 set_vector debug_vector, 0
16 set_vector debug_vector, 2f
17 rsil a2, debug_level - 1
25 movi a3, 0x10 | debug_level
36 set_vector debug_vector, 0
40 set_vector debug_vector, 2f
41 rsil a2, debug_level - 1
49 movi a3, 0x10 | debug_level
61 set_vector debug_vector, 0
69 rsil a2, debug_level - 1
76 set_vector debug_vector, 2f
88 movi a3, 0x10 | debug_level
99 set_vector debug_vector, 3f
100 rsil a2, debug_level - 1
115 movi a3, 0x10 | debug_level
132 test ibreak_break_priority
133 set_vector debug_vector, 2f
134 rsil a2, debug_level - 1
149 test ibreak_icount_priority
150 set_vector debug_vector, 2f
151 rsil a2, debug_level - 1
174 set_vector debug_vector, 2f
175 rsil a2, debug_level - 1
197 .macro check_dbreak dr
202 movi a3, 0x4 | (\dr << 8)
208 .macro dbreak_test dr, ctl, break, access, op
209 set_vector debug_vector, 2f
210 rsil a2, debug_level - 1
227 #if XCHAL_NUM_DBREAK > 1
233 dbreak_test DB0, 0x4000003f, 0xd000007f, 0xd000007f, l8ui
234 dbreak_test DB1, 0x4000003e, 0xd000007e, 0xd000007e, l16ui
235 dbreak_test DB0, 0x4000003c, 0xd000007c, 0xd000007c, l32i
237 dbreak_test DB1, 0x8000003f, 0xd000007f, 0xd000007f, s8i
238 dbreak_test DB0, 0x8000003e, 0xd000007e, 0xd000007e, s16i
239 dbreak_test DB1, 0x8000003c, 0xd000007c, 0xd000007c, s32i
242 test DBdbreak_overlap
243 dbreak_test DB0, 0x4000003f, 0xd000007d, 0xd000007c, l16ui
244 dbreak_test DB1, 0x4000003f, 0xd000007d, 0xd000007c, l32i
246 dbreak_test DB0, 0x4000003e, 0xd000007e, 0xd000007f, l8ui
247 dbreak_test DB1, 0x4000003e, 0xd000007e, 0xd000007c, l32i
249 dbreak_test DB0, 0x4000003c, 0xd000007c, 0xd000007d, l8ui
250 dbreak_test DB1, 0x4000003c, 0xd000007c, 0xd000007c, l16ui
252 dbreak_test DB0, 0x40000038, 0xd0000078, 0xd000007b, l8ui
253 dbreak_test DB1, 0x40000038, 0xd0000078, 0xd000007a, l16ui
254 dbreak_test DB0, 0x40000038, 0xd0000078, 0xd000007c, l32i
256 dbreak_test DB1, 0x40000030, 0xd0000070, 0xd0000075, l8ui
257 dbreak_test DB0, 0x40000030, 0xd0000070, 0xd0000076, l16ui
258 dbreak_test DB1, 0x40000030, 0xd0000070, 0xd0000078, l32i
260 dbreak_test DB0, 0x40000020, 0xd0000060, 0xd000006f, l8ui
261 dbreak_test DB1, 0x40000020, 0xd0000060, 0xd0000070, l16ui
262 dbreak_test DB0, 0x40000020, 0xd0000060, 0xd0000074, l32i
265 dbreak_test DB0, 0x8000003f, 0xd000007d, 0xd000007c, s16i
266 dbreak_test DB1, 0x8000003f, 0xd000007d, 0xd000007c, s32i
268 dbreak_test DB0, 0x8000003e, 0xd000007e, 0xd000007f, s8i
269 dbreak_test DB1, 0x8000003e, 0xd000007e, 0xd000007c, s32i
271 dbreak_test DB0, 0x8000003c, 0xd000007c, 0xd000007d, s8i
272 dbreak_test DB1, 0x8000003c, 0xd000007c, 0xd000007c, s16i
274 dbreak_test DB0, 0x80000038, 0xd0000078, 0xd000007b, s8i
275 dbreak_test DB1, 0x80000038, 0xd0000078, 0xd000007a, s16i
276 dbreak_test DB0, 0x80000038, 0xd0000078, 0xd000007c, s32i
278 dbreak_test DB1, 0x80000030, 0xd0000070, 0xd0000075, s8i
279 dbreak_test DB0, 0x80000030, 0xd0000070, 0xd0000076, s16i
280 dbreak_test DB1, 0x80000030, 0xd0000070, 0xd0000078, s32i
282 dbreak_test DB0, 0x80000020, 0xd0000060, 0xd000006f, s8i
283 dbreak_test DB1, 0x80000020, 0xd0000060, 0xd0000070, s16i
284 dbreak_test DB0, 0x80000020, 0xd0000060, 0xd0000074, s32i
287 test DBdbreak_invalid
288 dbreak_test DB0, 0x40000030, 0xd0000071, 0xd0000070, l16ui
289 dbreak_test DB1, 0x40000035, 0xd0000072, 0xd0000070, l32i