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
133 set_vector debug_vector, 2f
134 rsil a2, debug_level - 1
151 set_vector debug_vector, 2f
152 rsil a2, debug_level - 1
174 .macro check_dbreak dr
179 movi a3, 0x4 | (\dr << 8)
185 .macro dbreak_test dr, ctl, break, access, op
186 set_vector debug_vector, 2f
187 rsil a2, debug_level - 1
204 dbreak_test 0, 0x4000003f, 0xd000007f, 0xd000007f, l8ui
205 dbreak_test 1, 0x4000003e, 0xd000007e, 0xd000007e, l16ui
206 dbreak_test 0, 0x4000003c, 0xd000007c, 0xd000007c, l32i
208 dbreak_test 1, 0x8000003f, 0xd000007f, 0xd000007f, s8i
209 dbreak_test 0, 0x8000003e, 0xd000007e, 0xd000007e, s16i
210 dbreak_test 1, 0x8000003c, 0xd000007c, 0xd000007c, s32i
214 dbreak_test 0, 0x4000003f, 0xd000007d, 0xd000007c, l16ui
215 dbreak_test 1, 0x4000003f, 0xd000007d, 0xd000007c, l32i
217 dbreak_test 0, 0x4000003e, 0xd000007e, 0xd000007f, l8ui
218 dbreak_test 1, 0x4000003e, 0xd000007e, 0xd000007c, l32i
220 dbreak_test 0, 0x4000003c, 0xd000007c, 0xd000007d, l8ui
221 dbreak_test 1, 0x4000003c, 0xd000007c, 0xd000007c, l16ui
223 dbreak_test 0, 0x40000038, 0xd0000078, 0xd000007b, l8ui
224 dbreak_test 1, 0x40000038, 0xd0000078, 0xd000007a, l16ui
225 dbreak_test 0, 0x40000038, 0xd0000078, 0xd000007c, l32i
227 dbreak_test 1, 0x40000030, 0xd0000070, 0xd0000075, l8ui
228 dbreak_test 0, 0x40000030, 0xd0000070, 0xd0000076, l16ui
229 dbreak_test 1, 0x40000030, 0xd0000070, 0xd0000078, l32i
231 dbreak_test 0, 0x40000020, 0xd0000060, 0xd000006f, l8ui
232 dbreak_test 1, 0x40000020, 0xd0000060, 0xd0000070, l16ui
233 dbreak_test 0, 0x40000020, 0xd0000060, 0xd0000074, l32i
236 dbreak_test 0, 0x8000003f, 0xd000007d, 0xd000007c, s16i
237 dbreak_test 1, 0x8000003f, 0xd000007d, 0xd000007c, s32i
239 dbreak_test 0, 0x8000003e, 0xd000007e, 0xd000007f, s8i
240 dbreak_test 1, 0x8000003e, 0xd000007e, 0xd000007c, s32i
242 dbreak_test 0, 0x8000003c, 0xd000007c, 0xd000007d, s8i
243 dbreak_test 1, 0x8000003c, 0xd000007c, 0xd000007c, s16i
245 dbreak_test 0, 0x80000038, 0xd0000078, 0xd000007b, s8i
246 dbreak_test 1, 0x80000038, 0xd0000078, 0xd000007a, s16i
247 dbreak_test 0, 0x80000038, 0xd0000078, 0xd000007c, s32i
249 dbreak_test 1, 0x80000030, 0xd0000070, 0xd0000075, s8i
250 dbreak_test 0, 0x80000030, 0xd0000070, 0xd0000076, s16i
251 dbreak_test 1, 0x80000030, 0xd0000070, 0xd0000078, s32i
253 dbreak_test 0, 0x80000020, 0xd0000060, 0xd000006f, s8i
254 dbreak_test 1, 0x80000020, 0xd0000060, 0xd0000070, s16i
255 dbreak_test 0, 0x80000020, 0xd0000060, 0xd0000074, s32i
259 dbreak_test 0, 0x40000030, 0xd0000071, 0xd0000070, l16ui
260 dbreak_test 1, 0x40000035, 0xd0000072, 0xd0000070, l32i