Lines Matching +full:0 +full:xc01
8 #define MATCH_BEQ 0x63
9 #define MASK_BEQ 0x707f
10 #define MATCH_BNE 0x1063
11 #define MASK_BNE 0x707f
12 #define MATCH_BLT 0x4063
13 #define MASK_BLT 0x707f
14 #define MATCH_BGE 0x5063
15 #define MASK_BGE 0x707f
16 #define MATCH_BLTU 0x6063
17 #define MASK_BLTU 0x707f
18 #define MATCH_BGEU 0x7063
19 #define MASK_BGEU 0x707f
20 #define MATCH_JALR 0x67
21 #define MASK_JALR 0x707f
22 #define MATCH_JAL 0x6f
23 #define MASK_JAL 0x7f
24 #define MATCH_LUI 0x37
25 #define MASK_LUI 0x7f
26 #define MATCH_AUIPC 0x17
27 #define MASK_AUIPC 0x7f
28 #define MATCH_ADDI 0x13
29 #define MASK_ADDI 0x707f
30 #define MATCH_SLLI 0x1013
31 #define MASK_SLLI 0xfc00707f
32 #define MATCH_SLTI 0x2013
33 #define MASK_SLTI 0x707f
34 #define MATCH_SLTIU 0x3013
35 #define MASK_SLTIU 0x707f
36 #define MATCH_XORI 0x4013
37 #define MASK_XORI 0x707f
38 #define MATCH_SRLI 0x5013
39 #define MASK_SRLI 0xfc00707f
40 #define MATCH_SRAI 0x40005013
41 #define MASK_SRAI 0xfc00707f
42 #define MATCH_ORI 0x6013
43 #define MASK_ORI 0x707f
44 #define MATCH_ANDI 0x7013
45 #define MASK_ANDI 0x707f
46 #define MATCH_ADD 0x33
47 #define MASK_ADD 0xfe00707f
48 #define MATCH_SUB 0x40000033
49 #define MASK_SUB 0xfe00707f
50 #define MATCH_SLL 0x1033
51 #define MASK_SLL 0xfe00707f
52 #define MATCH_SLT 0x2033
53 #define MASK_SLT 0xfe00707f
54 #define MATCH_SLTU 0x3033
55 #define MASK_SLTU 0xfe00707f
56 #define MATCH_XOR 0x4033
57 #define MASK_XOR 0xfe00707f
58 #define MATCH_SRL 0x5033
59 #define MASK_SRL 0xfe00707f
60 #define MATCH_SRA 0x40005033
61 #define MASK_SRA 0xfe00707f
62 #define MATCH_OR 0x6033
63 #define MASK_OR 0xfe00707f
64 #define MATCH_AND 0x7033
65 #define MASK_AND 0xfe00707f
66 #define MATCH_ADDIW 0x1b
67 #define MASK_ADDIW 0x707f
68 #define MATCH_SLLIW 0x101b
69 #define MASK_SLLIW 0xfe00707f
70 #define MATCH_SRLIW 0x501b
71 #define MASK_SRLIW 0xfe00707f
72 #define MATCH_SRAIW 0x4000501b
73 #define MASK_SRAIW 0xfe00707f
74 #define MATCH_ADDW 0x3b
75 #define MASK_ADDW 0xfe00707f
76 #define MATCH_SUBW 0x4000003b
77 #define MASK_SUBW 0xfe00707f
78 #define MATCH_SLLW 0x103b
79 #define MASK_SLLW 0xfe00707f
80 #define MATCH_SRLW 0x503b
81 #define MASK_SRLW 0xfe00707f
82 #define MATCH_SRAW 0x4000503b
83 #define MASK_SRAW 0xfe00707f
84 #define MATCH_LB 0x3
85 #define MASK_LB 0x707f
86 #define MATCH_LH 0x1003
87 #define MASK_LH 0x707f
88 #define MATCH_LW 0x2003
89 #define MASK_LW 0x707f
90 #define MATCH_LD 0x3003
91 #define MASK_LD 0x707f
92 #define MATCH_LBU 0x4003
93 #define MASK_LBU 0x707f
94 #define MATCH_LHU 0x5003
95 #define MASK_LHU 0x707f
96 #define MATCH_LWU 0x6003
97 #define MASK_LWU 0x707f
98 #define MATCH_SB 0x23
99 #define MASK_SB 0x707f
100 #define MATCH_SH 0x1023
101 #define MASK_SH 0x707f
102 #define MATCH_SW 0x2023
103 #define MASK_SW 0x707f
104 #define MATCH_SD 0x3023
105 #define MASK_SD 0x707f
106 #define MATCH_FENCE 0xf
107 #define MASK_FENCE 0x707f
108 #define MATCH_FENCE_I 0x100f
109 #define MASK_FENCE_I 0x707f
110 #define MATCH_MUL 0x2000033
111 #define MASK_MUL 0xfe00707f
112 #define MATCH_MULH 0x2001033
113 #define MASK_MULH 0xfe00707f
114 #define MATCH_MULHSU 0x2002033
115 #define MASK_MULHSU 0xfe00707f
116 #define MATCH_MULHU 0x2003033
117 #define MASK_MULHU 0xfe00707f
118 #define MATCH_DIV 0x2004033
119 #define MASK_DIV 0xfe00707f
120 #define MATCH_DIVU 0x2005033
121 #define MASK_DIVU 0xfe00707f
122 #define MATCH_REM 0x2006033
123 #define MASK_REM 0xfe00707f
124 #define MATCH_REMU 0x2007033
125 #define MASK_REMU 0xfe00707f
126 #define MATCH_MULW 0x200003b
127 #define MASK_MULW 0xfe00707f
128 #define MATCH_DIVW 0x200403b
129 #define MASK_DIVW 0xfe00707f
130 #define MATCH_DIVUW 0x200503b
131 #define MASK_DIVUW 0xfe00707f
132 #define MATCH_REMW 0x200603b
133 #define MASK_REMW 0xfe00707f
134 #define MATCH_REMUW 0x200703b
135 #define MASK_REMUW 0xfe00707f
136 #define MATCH_AMOADD_W 0x202f
137 #define MASK_AMOADD_W 0xf800707f
138 #define MATCH_AMOXOR_W 0x2000202f
139 #define MASK_AMOXOR_W 0xf800707f
140 #define MATCH_AMOOR_W 0x4000202f
141 #define MASK_AMOOR_W 0xf800707f
142 #define MATCH_AMOAND_W 0x6000202f
143 #define MASK_AMOAND_W 0xf800707f
144 #define MATCH_AMOMIN_W 0x8000202f
145 #define MASK_AMOMIN_W 0xf800707f
146 #define MATCH_AMOMAX_W 0xa000202f
147 #define MASK_AMOMAX_W 0xf800707f
148 #define MATCH_AMOMINU_W 0xc000202f
149 #define MASK_AMOMINU_W 0xf800707f
150 #define MATCH_AMOMAXU_W 0xe000202f
151 #define MASK_AMOMAXU_W 0xf800707f
152 #define MATCH_AMOSWAP_W 0x800202f
153 #define MASK_AMOSWAP_W 0xf800707f
154 #define MATCH_LR_W 0x1000202f
155 #define MASK_LR_W 0xf9f0707f
156 #define MATCH_SC_W 0x1800202f
157 #define MASK_SC_W 0xf800707f
158 #define MATCH_AMOADD_D 0x302f
159 #define MASK_AMOADD_D 0xf800707f
160 #define MATCH_AMOXOR_D 0x2000302f
161 #define MASK_AMOXOR_D 0xf800707f
162 #define MATCH_AMOOR_D 0x4000302f
163 #define MASK_AMOOR_D 0xf800707f
164 #define MATCH_AMOAND_D 0x6000302f
165 #define MASK_AMOAND_D 0xf800707f
166 #define MATCH_AMOMIN_D 0x8000302f
167 #define MASK_AMOMIN_D 0xf800707f
168 #define MATCH_AMOMAX_D 0xa000302f
169 #define MASK_AMOMAX_D 0xf800707f
170 #define MATCH_AMOMINU_D 0xc000302f
171 #define MASK_AMOMINU_D 0xf800707f
172 #define MATCH_AMOMAXU_D 0xe000302f
173 #define MASK_AMOMAXU_D 0xf800707f
174 #define MATCH_AMOSWAP_D 0x800302f
175 #define MASK_AMOSWAP_D 0xf800707f
176 #define MATCH_LR_D 0x1000302f
177 #define MASK_LR_D 0xf9f0707f
178 #define MATCH_SC_D 0x1800302f
179 #define MASK_SC_D 0xf800707f
180 #define MATCH_ECALL 0x73
181 #define MASK_ECALL 0xffffffff
182 #define MATCH_EBREAK 0x100073
183 #define MASK_EBREAK 0xffffffff
184 #define MATCH_URET 0x200073
185 #define MASK_URET 0xffffffff
186 #define MATCH_SRET 0x10200073
187 #define MASK_SRET 0xffffffff
188 #define MATCH_MRET 0x30200073
189 #define MASK_MRET 0xffffffff
190 #define MATCH_DRET 0x7b200073
191 #define MASK_DRET 0xffffffff
192 #define MATCH_SFENCE_VMA 0x12000073
193 #define MASK_SFENCE_VMA 0xfe007fff
194 #define MATCH_WFI 0x10500073
195 #define MASK_WFI 0xffffffff
196 #define MATCH_CSRRW 0x1073
197 #define MASK_CSRRW 0x707f
198 #define MATCH_CSRRS 0x2073
199 #define MASK_CSRRS 0x707f
200 #define MATCH_CSRRC 0x3073
201 #define MASK_CSRRC 0x707f
202 #define MATCH_CSRRWI 0x5073
203 #define MASK_CSRRWI 0x707f
204 #define MATCH_CSRRSI 0x6073
205 #define MASK_CSRRSI 0x707f
206 #define MATCH_CSRRCI 0x7073
207 #define MASK_CSRRCI 0x707f
208 #define MATCH_FADD_S 0x53
209 #define MASK_FADD_S 0xfe00007f
210 #define MATCH_FSUB_S 0x8000053
211 #define MASK_FSUB_S 0xfe00007f
212 #define MATCH_FMUL_S 0x10000053
213 #define MASK_FMUL_S 0xfe00007f
214 #define MATCH_FDIV_S 0x18000053
215 #define MASK_FDIV_S 0xfe00007f
216 #define MATCH_FSGNJ_S 0x20000053
217 #define MASK_FSGNJ_S 0xfe00707f
218 #define MATCH_FSGNJN_S 0x20001053
219 #define MASK_FSGNJN_S 0xfe00707f
220 #define MATCH_FSGNJX_S 0x20002053
221 #define MASK_FSGNJX_S 0xfe00707f
222 #define MATCH_FMIN_S 0x28000053
223 #define MASK_FMIN_S 0xfe00707f
224 #define MATCH_FMAX_S 0x28001053
225 #define MASK_FMAX_S 0xfe00707f
226 #define MATCH_FSQRT_S 0x58000053
227 #define MASK_FSQRT_S 0xfff0007f
228 #define MATCH_FADD_D 0x2000053
229 #define MASK_FADD_D 0xfe00007f
230 #define MATCH_FSUB_D 0xa000053
231 #define MASK_FSUB_D 0xfe00007f
232 #define MATCH_FMUL_D 0x12000053
233 #define MASK_FMUL_D 0xfe00007f
234 #define MATCH_FDIV_D 0x1a000053
235 #define MASK_FDIV_D 0xfe00007f
236 #define MATCH_FSGNJ_D 0x22000053
237 #define MASK_FSGNJ_D 0xfe00707f
238 #define MATCH_FSGNJN_D 0x22001053
239 #define MASK_FSGNJN_D 0xfe00707f
240 #define MATCH_FSGNJX_D 0x22002053
241 #define MASK_FSGNJX_D 0xfe00707f
242 #define MATCH_FMIN_D 0x2a000053
243 #define MASK_FMIN_D 0xfe00707f
244 #define MATCH_FMAX_D 0x2a001053
245 #define MASK_FMAX_D 0xfe00707f
246 #define MATCH_FCVT_S_D 0x40100053
247 #define MASK_FCVT_S_D 0xfff0007f
248 #define MATCH_FCVT_D_S 0x42000053
249 #define MASK_FCVT_D_S 0xfff0007f
250 #define MATCH_FSQRT_D 0x5a000053
251 #define MASK_FSQRT_D 0xfff0007f
252 #define MATCH_FADD_Q 0x6000053
253 #define MASK_FADD_Q 0xfe00007f
254 #define MATCH_FSUB_Q 0xe000053
255 #define MASK_FSUB_Q 0xfe00007f
256 #define MATCH_FMUL_Q 0x16000053
257 #define MASK_FMUL_Q 0xfe00007f
258 #define MATCH_FDIV_Q 0x1e000053
259 #define MASK_FDIV_Q 0xfe00007f
260 #define MATCH_FSGNJ_Q 0x26000053
261 #define MASK_FSGNJ_Q 0xfe00707f
262 #define MATCH_FSGNJN_Q 0x26001053
263 #define MASK_FSGNJN_Q 0xfe00707f
264 #define MATCH_FSGNJX_Q 0x26002053
265 #define MASK_FSGNJX_Q 0xfe00707f
266 #define MATCH_FMIN_Q 0x2e000053
267 #define MASK_FMIN_Q 0xfe00707f
268 #define MATCH_FMAX_Q 0x2e001053
269 #define MASK_FMAX_Q 0xfe00707f
270 #define MATCH_FCVT_S_Q 0x40300053
271 #define MASK_FCVT_S_Q 0xfff0007f
272 #define MATCH_FCVT_Q_S 0x46000053
273 #define MASK_FCVT_Q_S 0xfff0007f
274 #define MATCH_FCVT_D_Q 0x42300053
275 #define MASK_FCVT_D_Q 0xfff0007f
276 #define MATCH_FCVT_Q_D 0x46100053
277 #define MASK_FCVT_Q_D 0xfff0007f
278 #define MATCH_FSQRT_Q 0x5e000053
279 #define MASK_FSQRT_Q 0xfff0007f
280 #define MATCH_FLE_S 0xa0000053
281 #define MASK_FLE_S 0xfe00707f
282 #define MATCH_FLT_S 0xa0001053
283 #define MASK_FLT_S 0xfe00707f
284 #define MATCH_FEQ_S 0xa0002053
285 #define MASK_FEQ_S 0xfe00707f
286 #define MATCH_FLE_D 0xa2000053
287 #define MASK_FLE_D 0xfe00707f
288 #define MATCH_FLT_D 0xa2001053
289 #define MASK_FLT_D 0xfe00707f
290 #define MATCH_FEQ_D 0xa2002053
291 #define MASK_FEQ_D 0xfe00707f
292 #define MATCH_FLE_Q 0xa6000053
293 #define MASK_FLE_Q 0xfe00707f
294 #define MATCH_FLT_Q 0xa6001053
295 #define MASK_FLT_Q 0xfe00707f
296 #define MATCH_FEQ_Q 0xa6002053
297 #define MASK_FEQ_Q 0xfe00707f
298 #define MATCH_FCVT_W_S 0xc0000053
299 #define MASK_FCVT_W_S 0xfff0007f
300 #define MATCH_FCVT_WU_S 0xc0100053
301 #define MASK_FCVT_WU_S 0xfff0007f
302 #define MATCH_FCVT_L_S 0xc0200053
303 #define MASK_FCVT_L_S 0xfff0007f
304 #define MATCH_FCVT_LU_S 0xc0300053
305 #define MASK_FCVT_LU_S 0xfff0007f
306 #define MATCH_FMV_X_W 0xe0000053
307 #define MASK_FMV_X_W 0xfff0707f
308 #define MATCH_FCLASS_S 0xe0001053
309 #define MASK_FCLASS_S 0xfff0707f
310 #define MATCH_FCVT_W_D 0xc2000053
311 #define MASK_FCVT_W_D 0xfff0007f
312 #define MATCH_FCVT_WU_D 0xc2100053
313 #define MASK_FCVT_WU_D 0xfff0007f
314 #define MATCH_FCVT_L_D 0xc2200053
315 #define MASK_FCVT_L_D 0xfff0007f
316 #define MATCH_FCVT_LU_D 0xc2300053
317 #define MASK_FCVT_LU_D 0xfff0007f
318 #define MATCH_FMV_X_D 0xe2000053
319 #define MASK_FMV_X_D 0xfff0707f
320 #define MATCH_FCLASS_D 0xe2001053
321 #define MASK_FCLASS_D 0xfff0707f
322 #define MATCH_FCVT_W_Q 0xc6000053
323 #define MASK_FCVT_W_Q 0xfff0007f
324 #define MATCH_FCVT_WU_Q 0xc6100053
325 #define MASK_FCVT_WU_Q 0xfff0007f
326 #define MATCH_FCVT_L_Q 0xc6200053
327 #define MASK_FCVT_L_Q 0xfff0007f
328 #define MATCH_FCVT_LU_Q 0xc6300053
329 #define MASK_FCVT_LU_Q 0xfff0007f
330 #define MATCH_FMV_X_Q 0xe6000053
331 #define MASK_FMV_X_Q 0xfff0707f
332 #define MATCH_FCLASS_Q 0xe6001053
333 #define MASK_FCLASS_Q 0xfff0707f
334 #define MATCH_FCVT_S_W 0xd0000053
335 #define MASK_FCVT_S_W 0xfff0007f
336 #define MATCH_FCVT_S_WU 0xd0100053
337 #define MASK_FCVT_S_WU 0xfff0007f
338 #define MATCH_FCVT_S_L 0xd0200053
339 #define MASK_FCVT_S_L 0xfff0007f
340 #define MATCH_FCVT_S_LU 0xd0300053
341 #define MASK_FCVT_S_LU 0xfff0007f
342 #define MATCH_FMV_W_X 0xf0000053
343 #define MASK_FMV_W_X 0xfff0707f
344 #define MATCH_FCVT_D_W 0xd2000053
345 #define MASK_FCVT_D_W 0xfff0007f
346 #define MATCH_FCVT_D_WU 0xd2100053
347 #define MASK_FCVT_D_WU 0xfff0007f
348 #define MATCH_FCVT_D_L 0xd2200053
349 #define MASK_FCVT_D_L 0xfff0007f
350 #define MATCH_FCVT_D_LU 0xd2300053
351 #define MASK_FCVT_D_LU 0xfff0007f
352 #define MATCH_FMV_D_X 0xf2000053
353 #define MASK_FMV_D_X 0xfff0707f
354 #define MATCH_FCVT_Q_W 0xd6000053
355 #define MASK_FCVT_Q_W 0xfff0007f
356 #define MATCH_FCVT_Q_WU 0xd6100053
357 #define MASK_FCVT_Q_WU 0xfff0007f
358 #define MATCH_FCVT_Q_L 0xd6200053
359 #define MASK_FCVT_Q_L 0xfff0007f
360 #define MATCH_FCVT_Q_LU 0xd6300053
361 #define MASK_FCVT_Q_LU 0xfff0007f
362 #define MATCH_FMV_Q_X 0xf6000053
363 #define MASK_FMV_Q_X 0xfff0707f
364 #define MATCH_FLW 0x2007
365 #define MASK_FLW 0x707f
366 #define MATCH_FLD 0x3007
367 #define MASK_FLD 0x707f
368 #define MATCH_FLQ 0x4007
369 #define MASK_FLQ 0x707f
370 #define MATCH_FSW 0x2027
371 #define MASK_FSW 0x707f
372 #define MATCH_FSD 0x3027
373 #define MASK_FSD 0x707f
374 #define MATCH_FSQ 0x4027
375 #define MASK_FSQ 0x707f
376 #define MATCH_FMADD_S 0x43
377 #define MASK_FMADD_S 0x600007f
378 #define MATCH_FMSUB_S 0x47
379 #define MASK_FMSUB_S 0x600007f
380 #define MATCH_FNMSUB_S 0x4b
381 #define MASK_FNMSUB_S 0x600007f
382 #define MATCH_FNMADD_S 0x4f
383 #define MASK_FNMADD_S 0x600007f
384 #define MATCH_FMADD_D 0x2000043
385 #define MASK_FMADD_D 0x600007f
386 #define MATCH_FMSUB_D 0x2000047
387 #define MASK_FMSUB_D 0x600007f
388 #define MATCH_FNMSUB_D 0x200004b
389 #define MASK_FNMSUB_D 0x600007f
390 #define MATCH_FNMADD_D 0x200004f
391 #define MASK_FNMADD_D 0x600007f
392 #define MATCH_FMADD_Q 0x6000043
393 #define MASK_FMADD_Q 0x600007f
394 #define MATCH_FMSUB_Q 0x6000047
395 #define MASK_FMSUB_Q 0x600007f
396 #define MATCH_FNMSUB_Q 0x600004b
397 #define MASK_FNMSUB_Q 0x600007f
398 #define MATCH_FNMADD_Q 0x600004f
399 #define MASK_FNMADD_Q 0x600007f
400 #define MATCH_C_NOP 0x1
401 #define MASK_C_NOP 0xffff
402 #define MATCH_C_ADDI16SP 0x6101
403 #define MASK_C_ADDI16SP 0xef83
404 #define MATCH_C_JR 0x8002
405 #define MASK_C_JR 0xf07f
406 #define MATCH_C_JALR 0x9002
407 #define MASK_C_JALR 0xf07f
408 #define MATCH_C_EBREAK 0x9002
409 #define MASK_C_EBREAK 0xffff
410 #define MATCH_C_LD 0x6000
411 #define MASK_C_LD 0xe003
412 #define MATCH_C_SD 0xe000
413 #define MASK_C_SD 0xe003
414 #define MATCH_C_ADDIW 0x2001
415 #define MASK_C_ADDIW 0xe003
416 #define MATCH_C_LDSP 0x6002
417 #define MASK_C_LDSP 0xe003
418 #define MATCH_C_SDSP 0xe002
419 #define MASK_C_SDSP 0xe003
420 #define MATCH_C_ADDI4SPN 0x0
421 #define MASK_C_ADDI4SPN 0xe003
422 #define MATCH_C_FLD 0x2000
423 #define MASK_C_FLD 0xe003
424 #define MATCH_C_LW 0x4000
425 #define MASK_C_LW 0xe003
426 #define MATCH_C_FLW 0x6000
427 #define MASK_C_FLW 0xe003
428 #define MATCH_C_FSD 0xa000
429 #define MASK_C_FSD 0xe003
430 #define MATCH_C_SW 0xc000
431 #define MASK_C_SW 0xe003
432 #define MATCH_C_FSW 0xe000
433 #define MASK_C_FSW 0xe003
434 #define MATCH_C_ADDI 0x1
435 #define MASK_C_ADDI 0xe003
436 #define MATCH_C_JAL 0x2001
437 #define MASK_C_JAL 0xe003
438 #define MATCH_C_LI 0x4001
439 #define MASK_C_LI 0xe003
440 #define MATCH_C_LUI 0x6001
441 #define MASK_C_LUI 0xe003
442 #define MATCH_C_SRLI 0x8001
443 #define MASK_C_SRLI 0xec03
444 #define MATCH_C_SRAI 0x8401
445 #define MASK_C_SRAI 0xec03
446 #define MATCH_C_ANDI 0x8801
447 #define MASK_C_ANDI 0xec03
448 #define MATCH_C_SUB 0x8c01
449 #define MASK_C_SUB 0xfc63
450 #define MATCH_C_XOR 0x8c21
451 #define MASK_C_XOR 0xfc63
452 #define MATCH_C_OR 0x8c41
453 #define MASK_C_OR 0xfc63
454 #define MATCH_C_AND 0x8c61
455 #define MASK_C_AND 0xfc63
456 #define MATCH_C_SUBW 0x9c01
457 #define MASK_C_SUBW 0xfc63
458 #define MATCH_C_ADDW 0x9c21
459 #define MASK_C_ADDW 0xfc63
460 #define MATCH_C_J 0xa001
461 #define MASK_C_J 0xe003
462 #define MATCH_C_BEQZ 0xc001
463 #define MASK_C_BEQZ 0xe003
464 #define MATCH_C_BNEZ 0xe001
465 #define MASK_C_BNEZ 0xe003
466 #define MATCH_C_SLLI 0x2
467 #define MASK_C_SLLI 0xe003
468 #define MATCH_C_FLDSP 0x2002
469 #define MASK_C_FLDSP 0xe003
470 #define MATCH_C_LWSP 0x4002
471 #define MASK_C_LWSP 0xe003
472 #define MATCH_C_FLWSP 0x6002
473 #define MASK_C_FLWSP 0xe003
474 #define MATCH_C_MV 0x8002
475 #define MASK_C_MV 0xf003
476 #define MATCH_C_ADD 0x9002
477 #define MASK_C_ADD 0xf003
478 #define MATCH_C_FSDSP 0xa002
479 #define MASK_C_FSDSP 0xe003
480 #define MATCH_C_SWSP 0xc002
481 #define MASK_C_SWSP 0xe003
482 #define MATCH_C_FSWSP 0xe002
483 #define MASK_C_FSWSP 0xe003
484 #define MATCH_CUSTOM0 0xb
485 #define MASK_CUSTOM0 0x707f
486 #define MATCH_CUSTOM0_RS1 0x200b
487 #define MASK_CUSTOM0_RS1 0x707f
488 #define MATCH_CUSTOM0_RS1_RS2 0x300b
489 #define MASK_CUSTOM0_RS1_RS2 0x707f
490 #define MATCH_CUSTOM0_RD 0x400b
491 #define MASK_CUSTOM0_RD 0x707f
492 #define MATCH_CUSTOM0_RD_RS1 0x600b
493 #define MASK_CUSTOM0_RD_RS1 0x707f
494 #define MATCH_CUSTOM0_RD_RS1_RS2 0x700b
495 #define MASK_CUSTOM0_RD_RS1_RS2 0x707f
496 #define MATCH_CUSTOM1 0x2b
497 #define MASK_CUSTOM1 0x707f
498 #define MATCH_CUSTOM1_RS1 0x202b
499 #define MASK_CUSTOM1_RS1 0x707f
500 #define MATCH_CUSTOM1_RS1_RS2 0x302b
501 #define MASK_CUSTOM1_RS1_RS2 0x707f
502 #define MATCH_CUSTOM1_RD 0x402b
503 #define MASK_CUSTOM1_RD 0x707f
504 #define MATCH_CUSTOM1_RD_RS1 0x602b
505 #define MASK_CUSTOM1_RD_RS1 0x707f
506 #define MATCH_CUSTOM1_RD_RS1_RS2 0x702b
507 #define MASK_CUSTOM1_RD_RS1_RS2 0x707f
508 #define MATCH_CUSTOM2 0x5b
509 #define MASK_CUSTOM2 0x707f
510 #define MATCH_CUSTOM2_RS1 0x205b
511 #define MASK_CUSTOM2_RS1 0x707f
512 #define MATCH_CUSTOM2_RS1_RS2 0x305b
513 #define MASK_CUSTOM2_RS1_RS2 0x707f
514 #define MATCH_CUSTOM2_RD 0x405b
515 #define MASK_CUSTOM2_RD 0x707f
516 #define MATCH_CUSTOM2_RD_RS1 0x605b
517 #define MASK_CUSTOM2_RD_RS1 0x707f
518 #define MATCH_CUSTOM2_RD_RS1_RS2 0x705b
519 #define MASK_CUSTOM2_RD_RS1_RS2 0x707f
520 #define MATCH_CUSTOM3 0x7b
521 #define MASK_CUSTOM3 0x707f
522 #define MATCH_CUSTOM3_RS1 0x207b
523 #define MASK_CUSTOM3_RS1 0x707f
524 #define MATCH_CUSTOM3_RS1_RS2 0x307b
525 #define MASK_CUSTOM3_RS1_RS2 0x707f
526 #define MATCH_CUSTOM3_RD 0x407b
527 #define MASK_CUSTOM3_RD 0x707f
528 #define MATCH_CUSTOM3_RD_RS1 0x607b
529 #define MASK_CUSTOM3_RD_RS1 0x707f
530 #define MATCH_CUSTOM3_RD_RS1_RS2 0x707b
531 #define MASK_CUSTOM3_RD_RS1_RS2 0x707f
532 #define CSR_FFLAGS 0x1
533 #define CSR_FRM 0x2
534 #define CSR_FCSR 0x3
535 #define CSR_CYCLE 0xc00
536 #define CSR_TIME 0xc01
537 #define CSR_INSTRET 0xc02
538 #define CSR_HPMCOUNTER3 0xc03
539 #define CSR_HPMCOUNTER4 0xc04
540 #define CSR_HPMCOUNTER5 0xc05
541 #define CSR_HPMCOUNTER6 0xc06
542 #define CSR_HPMCOUNTER7 0xc07
543 #define CSR_HPMCOUNTER8 0xc08
544 #define CSR_HPMCOUNTER9 0xc09
545 #define CSR_HPMCOUNTER10 0xc0a
546 #define CSR_HPMCOUNTER11 0xc0b
547 #define CSR_HPMCOUNTER12 0xc0c
548 #define CSR_HPMCOUNTER13 0xc0d
549 #define CSR_HPMCOUNTER14 0xc0e
550 #define CSR_HPMCOUNTER15 0xc0f
551 #define CSR_HPMCOUNTER16 0xc10
552 #define CSR_HPMCOUNTER17 0xc11
553 #define CSR_HPMCOUNTER18 0xc12
554 #define CSR_HPMCOUNTER19 0xc13
555 #define CSR_HPMCOUNTER20 0xc14
556 #define CSR_HPMCOUNTER21 0xc15
557 #define CSR_HPMCOUNTER22 0xc16
558 #define CSR_HPMCOUNTER23 0xc17
559 #define CSR_HPMCOUNTER24 0xc18
560 #define CSR_HPMCOUNTER25 0xc19
561 #define CSR_HPMCOUNTER26 0xc1a
562 #define CSR_HPMCOUNTER27 0xc1b
563 #define CSR_HPMCOUNTER28 0xc1c
564 #define CSR_HPMCOUNTER29 0xc1d
565 #define CSR_HPMCOUNTER30 0xc1e
566 #define CSR_HPMCOUNTER31 0xc1f
567 #define CSR_SSTATUS 0x100
568 #define CSR_SIE 0x104
569 #define CSR_STVEC 0x105
570 #define CSR_SCOUNTEREN 0x106
571 #define CSR_SSCRATCH 0x140
572 #define CSR_SEPC 0x141
573 #define CSR_SCAUSE 0x142
574 #define CSR_STVAL 0x143
575 #define CSR_SIP 0x144
576 #define CSR_SATP 0x180
577 #define CSR_MSTATUS 0x300
578 #define CSR_MISA 0x301
579 #define CSR_MEDELEG 0x302
580 #define CSR_MIDELEG 0x303
581 #define CSR_MIE 0x304
582 #define CSR_MTVEC 0x305
583 #define CSR_MCOUNTEREN 0x306
584 #define CSR_MSCRATCH 0x340
585 #define CSR_MEPC 0x341
586 #define CSR_MCAUSE 0x342
587 #define CSR_MTVAL 0x343
588 #define CSR_MIP 0x344
589 #define CSR_PMPCFG0 0x3a0
590 #define CSR_PMPCFG1 0x3a1
591 #define CSR_PMPCFG2 0x3a2
592 #define CSR_PMPCFG3 0x3a3
593 #define CSR_PMPADDR0 0x3b0
594 #define CSR_PMPADDR1 0x3b1
595 #define CSR_PMPADDR2 0x3b2
596 #define CSR_PMPADDR3 0x3b3
597 #define CSR_PMPADDR4 0x3b4
598 #define CSR_PMPADDR5 0x3b5
599 #define CSR_PMPADDR6 0x3b6
600 #define CSR_PMPADDR7 0x3b7
601 #define CSR_PMPADDR8 0x3b8
602 #define CSR_PMPADDR9 0x3b9
603 #define CSR_PMPADDR10 0x3ba
604 #define CSR_PMPADDR11 0x3bb
605 #define CSR_PMPADDR12 0x3bc
606 #define CSR_PMPADDR13 0x3bd
607 #define CSR_PMPADDR14 0x3be
608 #define CSR_PMPADDR15 0x3bf
609 #define CSR_TSELECT 0x7a0
610 #define CSR_TDATA1 0x7a1
611 #define CSR_TDATA2 0x7a2
612 #define CSR_TDATA3 0x7a3
613 #define CSR_DCSR 0x7b0
614 #define CSR_DPC 0x7b1
615 #define CSR_DSCRATCH 0x7b2
616 #define CSR_MCYCLE 0xb00
617 #define CSR_MINSTRET 0xb02
618 #define CSR_MHPMCOUNTER3 0xb03
619 #define CSR_MHPMCOUNTER4 0xb04
620 #define CSR_MHPMCOUNTER5 0xb05
621 #define CSR_MHPMCOUNTER6 0xb06
622 #define CSR_MHPMCOUNTER7 0xb07
623 #define CSR_MHPMCOUNTER8 0xb08
624 #define CSR_MHPMCOUNTER9 0xb09
625 #define CSR_MHPMCOUNTER10 0xb0a
626 #define CSR_MHPMCOUNTER11 0xb0b
627 #define CSR_MHPMCOUNTER12 0xb0c
628 #define CSR_MHPMCOUNTER13 0xb0d
629 #define CSR_MHPMCOUNTER14 0xb0e
630 #define CSR_MHPMCOUNTER15 0xb0f
631 #define CSR_MHPMCOUNTER16 0xb10
632 #define CSR_MHPMCOUNTER17 0xb11
633 #define CSR_MHPMCOUNTER18 0xb12
634 #define CSR_MHPMCOUNTER19 0xb13
635 #define CSR_MHPMCOUNTER20 0xb14
636 #define CSR_MHPMCOUNTER21 0xb15
637 #define CSR_MHPMCOUNTER22 0xb16
638 #define CSR_MHPMCOUNTER23 0xb17
639 #define CSR_MHPMCOUNTER24 0xb18
640 #define CSR_MHPMCOUNTER25 0xb19
641 #define CSR_MHPMCOUNTER26 0xb1a
642 #define CSR_MHPMCOUNTER27 0xb1b
643 #define CSR_MHPMCOUNTER28 0xb1c
644 #define CSR_MHPMCOUNTER29 0xb1d
645 #define CSR_MHPMCOUNTER30 0xb1e
646 #define CSR_MHPMCOUNTER31 0xb1f
647 #define CSR_MHPMEVENT3 0x323
648 #define CSR_MHPMEVENT4 0x324
649 #define CSR_MHPMEVENT5 0x325
650 #define CSR_MHPMEVENT6 0x326
651 #define CSR_MHPMEVENT7 0x327
652 #define CSR_MHPMEVENT8 0x328
653 #define CSR_MHPMEVENT9 0x329
654 #define CSR_MHPMEVENT10 0x32a
655 #define CSR_MHPMEVENT11 0x32b
656 #define CSR_MHPMEVENT12 0x32c
657 #define CSR_MHPMEVENT13 0x32d
658 #define CSR_MHPMEVENT14 0x32e
659 #define CSR_MHPMEVENT15 0x32f
660 #define CSR_MHPMEVENT16 0x330
661 #define CSR_MHPMEVENT17 0x331
662 #define CSR_MHPMEVENT18 0x332
663 #define CSR_MHPMEVENT19 0x333
664 #define CSR_MHPMEVENT20 0x334
665 #define CSR_MHPMEVENT21 0x335
666 #define CSR_MHPMEVENT22 0x336
667 #define CSR_MHPMEVENT23 0x337
668 #define CSR_MHPMEVENT24 0x338
669 #define CSR_MHPMEVENT25 0x339
670 #define CSR_MHPMEVENT26 0x33a
671 #define CSR_MHPMEVENT27 0x33b
672 #define CSR_MHPMEVENT28 0x33c
673 #define CSR_MHPMEVENT29 0x33d
674 #define CSR_MHPMEVENT30 0x33e
675 #define CSR_MHPMEVENT31 0x33f
676 #define CSR_MVENDORID 0xf11
677 #define CSR_MARCHID 0xf12
678 #define CSR_MIMPID 0xf13
679 #define CSR_MHARTID 0xf14
680 #define CSR_CYCLEH 0xc80
681 #define CSR_TIMEH 0xc81
682 #define CSR_INSTRETH 0xc82
683 #define CSR_HPMCOUNTER3H 0xc83
684 #define CSR_HPMCOUNTER4H 0xc84
685 #define CSR_HPMCOUNTER5H 0xc85
686 #define CSR_HPMCOUNTER6H 0xc86
687 #define CSR_HPMCOUNTER7H 0xc87
688 #define CSR_HPMCOUNTER8H 0xc88
689 #define CSR_HPMCOUNTER9H 0xc89
690 #define CSR_HPMCOUNTER10H 0xc8a
691 #define CSR_HPMCOUNTER11H 0xc8b
692 #define CSR_HPMCOUNTER12H 0xc8c
693 #define CSR_HPMCOUNTER13H 0xc8d
694 #define CSR_HPMCOUNTER14H 0xc8e
695 #define CSR_HPMCOUNTER15H 0xc8f
696 #define CSR_HPMCOUNTER16H 0xc90
697 #define CSR_HPMCOUNTER17H 0xc91
698 #define CSR_HPMCOUNTER18H 0xc92
699 #define CSR_HPMCOUNTER19H 0xc93
700 #define CSR_HPMCOUNTER20H 0xc94
701 #define CSR_HPMCOUNTER21H 0xc95
702 #define CSR_HPMCOUNTER22H 0xc96
703 #define CSR_HPMCOUNTER23H 0xc97
704 #define CSR_HPMCOUNTER24H 0xc98
705 #define CSR_HPMCOUNTER25H 0xc99
706 #define CSR_HPMCOUNTER26H 0xc9a
707 #define CSR_HPMCOUNTER27H 0xc9b
708 #define CSR_HPMCOUNTER28H 0xc9c
709 #define CSR_HPMCOUNTER29H 0xc9d
710 #define CSR_HPMCOUNTER30H 0xc9e
711 #define CSR_HPMCOUNTER31H 0xc9f
712 #define CSR_MCYCLEH 0xb80
713 #define CSR_MINSTRETH 0xb82
714 #define CSR_MHPMCOUNTER3H 0xb83
715 #define CSR_MHPMCOUNTER4H 0xb84
716 #define CSR_MHPMCOUNTER5H 0xb85
717 #define CSR_MHPMCOUNTER6H 0xb86
718 #define CSR_MHPMCOUNTER7H 0xb87
719 #define CSR_MHPMCOUNTER8H 0xb88
720 #define CSR_MHPMCOUNTER9H 0xb89
721 #define CSR_MHPMCOUNTER10H 0xb8a
722 #define CSR_MHPMCOUNTER11H 0xb8b
723 #define CSR_MHPMCOUNTER12H 0xb8c
724 #define CSR_MHPMCOUNTER13H 0xb8d
725 #define CSR_MHPMCOUNTER14H 0xb8e
726 #define CSR_MHPMCOUNTER15H 0xb8f
727 #define CSR_MHPMCOUNTER16H 0xb90
728 #define CSR_MHPMCOUNTER17H 0xb91
729 #define CSR_MHPMCOUNTER18H 0xb92
730 #define CSR_MHPMCOUNTER19H 0xb93
731 #define CSR_MHPMCOUNTER20H 0xb94
732 #define CSR_MHPMCOUNTER21H 0xb95
733 #define CSR_MHPMCOUNTER22H 0xb96
734 #define CSR_MHPMCOUNTER23H 0xb97
735 #define CSR_MHPMCOUNTER24H 0xb98
736 #define CSR_MHPMCOUNTER25H 0xb99
737 #define CSR_MHPMCOUNTER26H 0xb9a
738 #define CSR_MHPMCOUNTER27H 0xb9b
739 #define CSR_MHPMCOUNTER28H 0xb9c
740 #define CSR_MHPMCOUNTER29H 0xb9d
741 #define CSR_MHPMCOUNTER30H 0xb9e
742 #define CSR_MHPMCOUNTER31H 0xb9f
743 #define CAUSE_MISALIGNED_FETCH 0x0
744 #define CAUSE_FETCH_ACCESS 0x1
745 #define CAUSE_ILLEGAL_INSTRUCTION 0x2
746 #define CAUSE_BREAKPOINT 0x3
747 #define CAUSE_MISALIGNED_LOAD 0x4
748 #define CAUSE_LOAD_ACCESS 0x5
749 #define CAUSE_MISALIGNED_STORE 0x6
750 #define CAUSE_STORE_ACCESS 0x7
751 #define CAUSE_USER_ECALL 0x8
752 #define CAUSE_SUPERVISOR_ECALL 0x9
753 #define CAUSE_HYPERVISOR_ECALL 0xa
754 #define CAUSE_MACHINE_ECALL 0xb
755 #define CAUSE_FETCH_PAGE_FAULT 0xc
756 #define CAUSE_LOAD_PAGE_FAULT 0xd
757 #define CAUSE_STORE_PAGE_FAULT 0xf