1 #ifndef RISCV_CSR_ENCODING_H 2 #define RISCV_CSR_ENCODING_H 4 #define MSTATUS_UIE 0x00000001 5 #define MSTATUS_SIE 0x00000002 6 #define MSTATUS_HIE 0x00000004 7 #define MSTATUS_MIE 0x00000008 8 #define MSTATUS_UPIE 0x00000010 9 #define MSTATUS_SPIE 0x00000020 10 #define MSTATUS_HPIE 0x00000040 11 #define MSTATUS_MPIE 0x00000080 12 #define MSTATUS_SPP 0x00000100 13 #define MSTATUS_MPP 0x00001800 14 #define MSTATUS_FS 0x00006000 15 #define MSTATUS_XS 0x00018000 16 #define MSTATUS_MPRV 0x00020000 17 #define MSTATUS_PUM 0x00040000 18 #define MSTATUS_MXR 0x00080000 19 #define MSTATUS_VM 0x1F000000 20 #define MSTATUS32_SD 0x80000000 21 #define MSTATUS64_SD 0x8000000000000000 24 #define SSTATUS_UIE 0x00000001 25 #define SSTATUS_SIE 0x00000002 26 #define SSTATUS_UPIE 0x00000010 27 #define SSTATUS_SPIE 0x00000020 28 #define SSTATUS_SPP 0x00000100 29 #define SSTATUS_FS 0x00006000 30 #define SSTATUS_XS 0x00018000 31 #define SSTATUS_PUM 0x00040000 32 #define SSTATUS32_SD 0x80000000 33 #define SSTATUS64_SD 0x8000000000000000 35 #define DCSR_XDEBUGVER (3U<<30) 36 #define DCSR_NDRESET (1<<29) 37 #define DCSR_FULLRESET (1<<28) 38 #define DCSR_EBREAKM (1<<15) 39 #define DCSR_EBREAKH (1<<14) 40 #define DCSR_EBREAKS (1<<13) 41 #define DCSR_EBREAKU (1<<12) 42 #define DCSR_STOPCYCLE (1<<10) 43 #define DCSR_STOPTIME (1<<9) 44 #define DCSR_CAUSE (7<<6) 45 #define DCSR_DEBUGINT (1<<5) 46 #define DCSR_HALT (1<<3) 47 #define DCSR_STEP (1<<2) 48 #define DCSR_PRV (3<<0) 50 #define DCSR_CAUSE_NONE 0 51 #define DCSR_CAUSE_SWBP 1 52 #define DCSR_CAUSE_HWBP 2 53 #define DCSR_CAUSE_DEBUGINT 3 54 #define DCSR_CAUSE_STEP 4 55 #define DCSR_CAUSE_HALT 5 57 #define MCONTROL_TYPE(xlen) (0xfULL<<((xlen)-4)) 58 #define MCONTROL_DMODE(xlen) (1ULL<<((xlen)-5)) 59 #define MCONTROL_MASKMAX(xlen) (0x3fULL<<((xlen)-11)) 61 #define MCONTROL_SELECT (1<<19) 62 #define MCONTROL_TIMING (1<<18) 63 #define MCONTROL_ACTION (0x3f<<12) 64 #define MCONTROL_CHAIN (1<<11) 65 #define MCONTROL_MATCH (0xf<<7) 66 #define MCONTROL_M (1<<6) 67 #define MCONTROL_H (1<<5) 68 #define MCONTROL_S (1<<4) 69 #define MCONTROL_U (1<<3) 70 #define MCONTROL_EXECUTE (1<<2) 71 #define MCONTROL_STORE (1<<1) 72 #define MCONTROL_LOAD (1<<0) 74 #define MCONTROL_TYPE_NONE 0 75 #define MCONTROL_TYPE_MATCH 2 77 #define MCONTROL_ACTION_DEBUG_EXCEPTION 0 78 #define MCONTROL_ACTION_DEBUG_MODE 1 79 #define MCONTROL_ACTION_TRACE_START 2 80 #define MCONTROL_ACTION_TRACE_STOP 3 81 #define MCONTROL_ACTION_TRACE_EMIT 4 83 #define MCONTROL_MATCH_EQUAL 0 84 #define MCONTROL_MATCH_NAPOT 1 85 #define MCONTROL_MATCH_GE 2 86 #define MCONTROL_MATCH_LT 3 87 #define MCONTROL_MATCH_MASK_LOW 4 88 #define MCONTROL_MATCH_MASK_HIGH 5 90 #define MIP_SSIP (1 << IRQ_S_SOFT) 91 #define MIP_HSIP (1 << IRQ_H_SOFT) 92 #define MIP_MSIP (1 << IRQ_M_SOFT) 93 #define MIP_STIP (1 << IRQ_S_TIMER) 94 #define MIP_HTIP (1 << IRQ_H_TIMER) 95 #define MIP_MTIP (1 << IRQ_M_TIMER) 96 #define MIP_SEIP (1 << IRQ_S_EXT) 97 #define MIP_HEIP (1 << IRQ_H_EXT) 98 #define MIP_MEIP (1 << IRQ_M_EXT) 100 #define MIE_SSIE MIP_SSIP 101 #define MIE_HSIE MIP_HSIP 102 #define MIE_MSIE MIP_MSIP 103 #define MIE_STIE MIP_STIP 104 #define MIE_HTIE MIP_HTIP 105 #define MIE_MTIE MIP_MTIP 106 #define MIE_SEIE MIP_SEIP 107 #define MIE_HEIE MIP_HEIP 108 #define MIE_MEIE MIP_MEIP 110 #define SIP_SSIP MIP_SSIP 111 #define SIP_STIP MIP_STIP 128 #define IRQ_S_TIMER 5 129 #define IRQ_H_TIMER 6 130 #define IRQ_M_TIMER 7 137 #define DEFAULT_RSTVEC 0x00001000 138 #define DEFAULT_NMIVEC 0x00001004 139 #define DEFAULT_MTVEC 0x00001010 140 #define CONFIG_STRING_ADDR 0x0000100C 141 #define EXT_IO_BASE 0x40000000 142 #define DRAM_BASE 0x80000000 145 #define PTE_V 0x001 // Valid 146 #define PTE_R 0x002 // Read 147 #define PTE_W 0x004 // Write 148 #define PTE_X 0x008 // Execute 149 #define PTE_U 0x010 // User 150 #define PTE_G 0x020 // Global 151 #define PTE_A 0x040 // Accessed 152 #define PTE_D 0x080 // Dirty 153 #define PTE_SOFT 0x300 // Reserved for Software 155 #define PTE_PPN_SHIFT 10 157 #define PTE_TABLE(PTE) (((PTE) & (PTE_V | PTE_R | PTE_W | PTE_X)) == PTE_V) 162 # define MSTATUS_SD MSTATUS64_SD 163 # define SSTATUS_SD SSTATUS64_SD 164 # define RISCV_PGLEVEL_BITS 9 166 # define MSTATUS_SD MSTATUS32_SD 167 # define SSTATUS_SD SSTATUS32_SD 168 # define RISCV_PGLEVEL_BITS 10 170 #define RISCV_PGSHIFT 12 171 #define RISCV_PGSIZE (1 << RISCV_PGSHIFT) 173 #ifndef __ASSEMBLER__ 177 #define read_csr(reg) ({ unsigned long __tmp; \ 178 asm volatile ("csrr %0, " #reg : "=r"(__tmp)); \ 181 #define write_csr(reg, val) ({ \ 182 if (__builtin_constant_p(val) && (unsigned long)(val) < 32) \ 183 asm volatile ("csrw " #reg ", %0" :: "i"(val)); \ 185 asm volatile ("csrw " #reg ", %0" :: "r"(val)); }) 187 #define swap_csr(reg, val) ({ unsigned long __tmp; \ 188 if (__builtin_constant_p(val) && (unsigned long)(val) < 32) \ 189 asm volatile ("csrrw %0, " #reg ", %1" : "=r"(__tmp) : "i"(val)); \ 191 asm volatile ("csrrw %0, " #reg ", %1" : "=r"(__tmp) : "r"(val)); \ 194 #define set_csr(reg, bit) ({ unsigned long __tmp; \ 195 if (__builtin_constant_p(bit) && (unsigned long)(bit) < 32) \ 196 asm volatile ("csrrs %0, " #reg ", %1" : "=r"(__tmp) : "i"(bit)); \ 198 asm volatile ("csrrs %0, " #reg ", %1" : "=r"(__tmp) : "r"(bit)); \ 201 #define clear_csr(reg, bit) ({ unsigned long __tmp; \ 202 if (__builtin_constant_p(bit) && (unsigned long)(bit) < 32) \ 203 asm volatile ("csrrc %0, " #reg ", %1" : "=r"(__tmp) : "i"(bit)); \ 205 asm volatile ("csrrc %0, " #reg ", %1" : "=r"(__tmp) : "r"(bit)); \ 208 #define rdtime() read_csr(time) 209 #define rdcycle() read_csr(cycle) 210 #define rdinstret() read_csr(instret) 225 #ifndef RISCV_ENCODING_H 226 #define RISCV_ENCODING_H 227 #define MATCH_BEQ 0x63 228 #define MASK_BEQ 0x707f 229 #define MATCH_BNE 0x1063 230 #define MASK_BNE 0x707f 231 #define MATCH_BLT 0x4063 232 #define MASK_BLT 0x707f 233 #define MATCH_BGE 0x5063 234 #define MASK_BGE 0x707f 235 #define MATCH_BLTU 0x6063 236 #define MASK_BLTU 0x707f 237 #define MATCH_BGEU 0x7063 238 #define MASK_BGEU 0x707f 239 #define MATCH_JALR 0x67 240 #define MASK_JALR 0x707f 241 #define MATCH_JAL 0x6f 242 #define MASK_JAL 0x7f 243 #define MATCH_LUI 0x37 244 #define MASK_LUI 0x7f 245 #define MATCH_AUIPC 0x17 246 #define MASK_AUIPC 0x7f 247 #define MATCH_ADDI 0x13 248 #define MASK_ADDI 0x707f 249 #define MATCH_SLLI 0x1013 250 #define MASK_SLLI 0xfc00707f 251 #define MATCH_SLTI 0x2013 252 #define MASK_SLTI 0x707f 253 #define MATCH_SLTIU 0x3013 254 #define MASK_SLTIU 0x707f 255 #define MATCH_XORI 0x4013 256 #define MASK_XORI 0x707f 257 #define MATCH_SRLI 0x5013 258 #define MASK_SRLI 0xfc00707f 259 #define MATCH_SRAI 0x40005013 260 #define MASK_SRAI 0xfc00707f 261 #define MATCH_ORI 0x6013 262 #define MASK_ORI 0x707f 263 #define MATCH_ANDI 0x7013 264 #define MASK_ANDI 0x707f 265 #define MATCH_ADD 0x33 266 #define MASK_ADD 0xfe00707f 267 #define MATCH_SUB 0x40000033 268 #define MASK_SUB 0xfe00707f 269 #define MATCH_SLL 0x1033 270 #define MASK_SLL 0xfe00707f 271 #define MATCH_SLT 0x2033 272 #define MASK_SLT 0xfe00707f 273 #define MATCH_SLTU 0x3033 274 #define MASK_SLTU 0xfe00707f 275 #define MATCH_XOR 0x4033 276 #define MASK_XOR 0xfe00707f 277 #define MATCH_SRL 0x5033 278 #define MASK_SRL 0xfe00707f 279 #define MATCH_SRA 0x40005033 280 #define MASK_SRA 0xfe00707f 281 #define MATCH_OR 0x6033 282 #define MASK_OR 0xfe00707f 283 #define MATCH_AND 0x7033 284 #define MASK_AND 0xfe00707f 285 #define MATCH_ADDIW 0x1b 286 #define MASK_ADDIW 0x707f 287 #define MATCH_SLLIW 0x101b 288 #define MASK_SLLIW 0xfe00707f 289 #define MATCH_SRLIW 0x501b 290 #define MASK_SRLIW 0xfe00707f 291 #define MATCH_SRAIW 0x4000501b 292 #define MASK_SRAIW 0xfe00707f 293 #define MATCH_ADDW 0x3b 294 #define MASK_ADDW 0xfe00707f 295 #define MATCH_SUBW 0x4000003b 296 #define MASK_SUBW 0xfe00707f 297 #define MATCH_SLLW 0x103b 298 #define MASK_SLLW 0xfe00707f 299 #define MATCH_SRLW 0x503b 300 #define MASK_SRLW 0xfe00707f 301 #define MATCH_SRAW 0x4000503b 302 #define MASK_SRAW 0xfe00707f 304 #define MASK_LB 0x707f 305 #define MATCH_LH 0x1003 306 #define MASK_LH 0x707f 307 #define MATCH_LW 0x2003 308 #define MASK_LW 0x707f 309 #define MATCH_LD 0x3003 310 #define MASK_LD 0x707f 311 #define MATCH_LBU 0x4003 312 #define MASK_LBU 0x707f 313 #define MATCH_LHU 0x5003 314 #define MASK_LHU 0x707f 315 #define MATCH_LWU 0x6003 316 #define MASK_LWU 0x707f 317 #define MATCH_SB 0x23 318 #define MASK_SB 0x707f 319 #define MATCH_SH 0x1023 320 #define MASK_SH 0x707f 321 #define MATCH_SW 0x2023 322 #define MASK_SW 0x707f 323 #define MATCH_SD 0x3023 324 #define MASK_SD 0x707f 325 #define MATCH_FENCE 0xf 326 #define MASK_FENCE 0x707f 327 #define MATCH_FENCE_I 0x100f 328 #define MASK_FENCE_I 0x707f 329 #define MATCH_MUL 0x2000033 330 #define MASK_MUL 0xfe00707f 331 #define MATCH_MULH 0x2001033 332 #define MASK_MULH 0xfe00707f 333 #define MATCH_MULHSU 0x2002033 334 #define MASK_MULHSU 0xfe00707f 335 #define MATCH_MULHU 0x2003033 336 #define MASK_MULHU 0xfe00707f 337 #define MATCH_DIV 0x2004033 338 #define MASK_DIV 0xfe00707f 339 #define MATCH_DIVU 0x2005033 340 #define MASK_DIVU 0xfe00707f 341 #define MATCH_REM 0x2006033 342 #define MASK_REM 0xfe00707f 343 #define MATCH_REMU 0x2007033 344 #define MASK_REMU 0xfe00707f 345 #define MATCH_MULW 0x200003b 346 #define MASK_MULW 0xfe00707f 347 #define MATCH_DIVW 0x200403b 348 #define MASK_DIVW 0xfe00707f 349 #define MATCH_DIVUW 0x200503b 350 #define MASK_DIVUW 0xfe00707f 351 #define MATCH_REMW 0x200603b 352 #define MASK_REMW 0xfe00707f 353 #define MATCH_REMUW 0x200703b 354 #define MASK_REMUW 0xfe00707f 355 #define MATCH_AMOADD_W 0x202f 356 #define MASK_AMOADD_W 0xf800707f 357 #define MATCH_AMOXOR_W 0x2000202f 358 #define MASK_AMOXOR_W 0xf800707f 359 #define MATCH_AMOOR_W 0x4000202f 360 #define MASK_AMOOR_W 0xf800707f 361 #define MATCH_AMOAND_W 0x6000202f 362 #define MASK_AMOAND_W 0xf800707f 363 #define MATCH_AMOMIN_W 0x8000202f 364 #define MASK_AMOMIN_W 0xf800707f 365 #define MATCH_AMOMAX_W 0xa000202f 366 #define MASK_AMOMAX_W 0xf800707f 367 #define MATCH_AMOMINU_W 0xc000202f 368 #define MASK_AMOMINU_W 0xf800707f 369 #define MATCH_AMOMAXU_W 0xe000202f 370 #define MASK_AMOMAXU_W 0xf800707f 371 #define MATCH_AMOSWAP_W 0x800202f 372 #define MASK_AMOSWAP_W 0xf800707f 373 #define MATCH_LR_W 0x1000202f 374 #define MASK_LR_W 0xf9f0707f 375 #define MATCH_SC_W 0x1800202f 376 #define MASK_SC_W 0xf800707f 377 #define MATCH_AMOADD_D 0x302f 378 #define MASK_AMOADD_D 0xf800707f 379 #define MATCH_AMOXOR_D 0x2000302f 380 #define MASK_AMOXOR_D 0xf800707f 381 #define MATCH_AMOOR_D 0x4000302f 382 #define MASK_AMOOR_D 0xf800707f 383 #define MATCH_AMOAND_D 0x6000302f 384 #define MASK_AMOAND_D 0xf800707f 385 #define MATCH_AMOMIN_D 0x8000302f 386 #define MASK_AMOMIN_D 0xf800707f 387 #define MATCH_AMOMAX_D 0xa000302f 388 #define MASK_AMOMAX_D 0xf800707f 389 #define MATCH_AMOMINU_D 0xc000302f 390 #define MASK_AMOMINU_D 0xf800707f 391 #define MATCH_AMOMAXU_D 0xe000302f 392 #define MASK_AMOMAXU_D 0xf800707f 393 #define MATCH_AMOSWAP_D 0x800302f 394 #define MASK_AMOSWAP_D 0xf800707f 395 #define MATCH_LR_D 0x1000302f 396 #define MASK_LR_D 0xf9f0707f 397 #define MATCH_SC_D 0x1800302f 398 #define MASK_SC_D 0xf800707f 399 #define MATCH_ECALL 0x73 400 #define MASK_ECALL 0xffffffff 401 #define MATCH_EBREAK 0x100073 402 #define MASK_EBREAK 0xffffffff 403 #define MATCH_URET 0x200073 404 #define MASK_URET 0xffffffff 405 #define MATCH_SRET 0x10200073 406 #define MASK_SRET 0xffffffff 407 #define MATCH_HRET 0x20200073 408 #define MASK_HRET 0xffffffff 409 #define MATCH_MRET 0x30200073 410 #define MASK_MRET 0xffffffff 411 #define MATCH_DRET 0x7b200073 412 #define MASK_DRET 0xffffffff 413 #define MATCH_SFENCE_VM 0x10400073 414 #define MASK_SFENCE_VM 0xfff07fff 415 #define MATCH_WFI 0x10500073 416 #define MASK_WFI 0xffffffff 417 #define MATCH_CSRRW 0x1073 418 #define MASK_CSRRW 0x707f 419 #define MATCH_CSRRS 0x2073 420 #define MASK_CSRRS 0x707f 421 #define MATCH_CSRRC 0x3073 422 #define MASK_CSRRC 0x707f 423 #define MATCH_CSRRWI 0x5073 424 #define MASK_CSRRWI 0x707f 425 #define MATCH_CSRRSI 0x6073 426 #define MASK_CSRRSI 0x707f 427 #define MATCH_CSRRCI 0x7073 428 #define MASK_CSRRCI 0x707f 429 #define MATCH_FADD_S 0x53 430 #define MASK_FADD_S 0xfe00007f 431 #define MATCH_FSUB_S 0x8000053 432 #define MASK_FSUB_S 0xfe00007f 433 #define MATCH_FMUL_S 0x10000053 434 #define MASK_FMUL_S 0xfe00007f 435 #define MATCH_FDIV_S 0x18000053 436 #define MASK_FDIV_S 0xfe00007f 437 #define MATCH_FSGNJ_S 0x20000053 438 #define MASK_FSGNJ_S 0xfe00707f 439 #define MATCH_FSGNJN_S 0x20001053 440 #define MASK_FSGNJN_S 0xfe00707f 441 #define MATCH_FSGNJX_S 0x20002053 442 #define MASK_FSGNJX_S 0xfe00707f 443 #define MATCH_FMIN_S 0x28000053 444 #define MASK_FMIN_S 0xfe00707f 445 #define MATCH_FMAX_S 0x28001053 446 #define MASK_FMAX_S 0xfe00707f 447 #define MATCH_FSQRT_S 0x58000053 448 #define MASK_FSQRT_S 0xfff0007f 449 #define MATCH_FADD_D 0x2000053 450 #define MASK_FADD_D 0xfe00007f 451 #define MATCH_FSUB_D 0xa000053 452 #define MASK_FSUB_D 0xfe00007f 453 #define MATCH_FMUL_D 0x12000053 454 #define MASK_FMUL_D 0xfe00007f 455 #define MATCH_FDIV_D 0x1a000053 456 #define MASK_FDIV_D 0xfe00007f 457 #define MATCH_FSGNJ_D 0x22000053 458 #define MASK_FSGNJ_D 0xfe00707f 459 #define MATCH_FSGNJN_D 0x22001053 460 #define MASK_FSGNJN_D 0xfe00707f 461 #define MATCH_FSGNJX_D 0x22002053 462 #define MASK_FSGNJX_D 0xfe00707f 463 #define MATCH_FMIN_D 0x2a000053 464 #define MASK_FMIN_D 0xfe00707f 465 #define MATCH_FMAX_D 0x2a001053 466 #define MASK_FMAX_D 0xfe00707f 467 #define MATCH_FCVT_S_D 0x40100053 468 #define MASK_FCVT_S_D 0xfff0007f 469 #define MATCH_FCVT_D_S 0x42000053 470 #define MASK_FCVT_D_S 0xfff0007f 471 #define MATCH_FSQRT_D 0x5a000053 472 #define MASK_FSQRT_D 0xfff0007f 473 #define MATCH_FLE_S 0xa0000053 474 #define MASK_FLE_S 0xfe00707f 475 #define MATCH_FLT_S 0xa0001053 476 #define MASK_FLT_S 0xfe00707f 477 #define MATCH_FEQ_S 0xa0002053 478 #define MASK_FEQ_S 0xfe00707f 479 #define MATCH_FLE_D 0xa2000053 480 #define MASK_FLE_D 0xfe00707f 481 #define MATCH_FLT_D 0xa2001053 482 #define MASK_FLT_D 0xfe00707f 483 #define MATCH_FEQ_D 0xa2002053 484 #define MASK_FEQ_D 0xfe00707f 485 #define MATCH_FCVT_W_S 0xc0000053 486 #define MASK_FCVT_W_S 0xfff0007f 487 #define MATCH_FCVT_WU_S 0xc0100053 488 #define MASK_FCVT_WU_S 0xfff0007f 489 #define MATCH_FCVT_L_S 0xc0200053 490 #define MASK_FCVT_L_S 0xfff0007f 491 #define MATCH_FCVT_LU_S 0xc0300053 492 #define MASK_FCVT_LU_S 0xfff0007f 493 #define MATCH_FMV_X_S 0xe0000053 494 #define MASK_FMV_X_S 0xfff0707f 495 #define MATCH_FCLASS_S 0xe0001053 496 #define MASK_FCLASS_S 0xfff0707f 497 #define MATCH_FCVT_W_D 0xc2000053 498 #define MASK_FCVT_W_D 0xfff0007f 499 #define MATCH_FCVT_WU_D 0xc2100053 500 #define MASK_FCVT_WU_D 0xfff0007f 501 #define MATCH_FCVT_L_D 0xc2200053 502 #define MASK_FCVT_L_D 0xfff0007f 503 #define MATCH_FCVT_LU_D 0xc2300053 504 #define MASK_FCVT_LU_D 0xfff0007f 505 #define MATCH_FMV_X_D 0xe2000053 506 #define MASK_FMV_X_D 0xfff0707f 507 #define MATCH_FCLASS_D 0xe2001053 508 #define MASK_FCLASS_D 0xfff0707f 509 #define MATCH_FCVT_S_W 0xd0000053 510 #define MASK_FCVT_S_W 0xfff0007f 511 #define MATCH_FCVT_S_WU 0xd0100053 512 #define MASK_FCVT_S_WU 0xfff0007f 513 #define MATCH_FCVT_S_L 0xd0200053 514 #define MASK_FCVT_S_L 0xfff0007f 515 #define MATCH_FCVT_S_LU 0xd0300053 516 #define MASK_FCVT_S_LU 0xfff0007f 517 #define MATCH_FMV_S_X 0xf0000053 518 #define MASK_FMV_S_X 0xfff0707f 519 #define MATCH_FCVT_D_W 0xd2000053 520 #define MASK_FCVT_D_W 0xfff0007f 521 #define MATCH_FCVT_D_WU 0xd2100053 522 #define MASK_FCVT_D_WU 0xfff0007f 523 #define MATCH_FCVT_D_L 0xd2200053 524 #define MASK_FCVT_D_L 0xfff0007f 525 #define MATCH_FCVT_D_LU 0xd2300053 526 #define MASK_FCVT_D_LU 0xfff0007f 527 #define MATCH_FMV_D_X 0xf2000053 528 #define MASK_FMV_D_X 0xfff0707f 529 #define MATCH_FLW 0x2007 530 #define MASK_FLW 0x707f 531 #define MATCH_FLD 0x3007 532 #define MASK_FLD 0x707f 533 #define MATCH_FSW 0x2027 534 #define MASK_FSW 0x707f 535 #define MATCH_FSD 0x3027 536 #define MASK_FSD 0x707f 537 #define MATCH_FMADD_S 0x43 538 #define MASK_FMADD_S 0x600007f 539 #define MATCH_FMSUB_S 0x47 540 #define MASK_FMSUB_S 0x600007f 541 #define MATCH_FNMSUB_S 0x4b 542 #define MASK_FNMSUB_S 0x600007f 543 #define MATCH_FNMADD_S 0x4f 544 #define MASK_FNMADD_S 0x600007f 545 #define MATCH_FMADD_D 0x2000043 546 #define MASK_FMADD_D 0x600007f 547 #define MATCH_FMSUB_D 0x2000047 548 #define MASK_FMSUB_D 0x600007f 549 #define MATCH_FNMSUB_D 0x200004b 550 #define MASK_FNMSUB_D 0x600007f 551 #define MATCH_FNMADD_D 0x200004f 552 #define MASK_FNMADD_D 0x600007f 553 #define MATCH_C_NOP 0x1 554 #define MASK_C_NOP 0xffff 555 #define MATCH_C_ADDI16SP 0x6101 556 #define MASK_C_ADDI16SP 0xef83 557 #define MATCH_C_JR 0x8002 558 #define MASK_C_JR 0xf07f 559 #define MATCH_C_JALR 0x9002 560 #define MASK_C_JALR 0xf07f 561 #define MATCH_C_EBREAK 0x9002 562 #define MASK_C_EBREAK 0xffff 563 #define MATCH_C_LD 0x6000 564 #define MASK_C_LD 0xe003 565 #define MATCH_C_SD 0xe000 566 #define MASK_C_SD 0xe003 567 #define MATCH_C_ADDIW 0x2001 568 #define MASK_C_ADDIW 0xe003 569 #define MATCH_C_LDSP 0x6002 570 #define MASK_C_LDSP 0xe003 571 #define MATCH_C_SDSP 0xe002 572 #define MASK_C_SDSP 0xe003 573 #define MATCH_C_ADDI4SPN 0x0 574 #define MASK_C_ADDI4SPN 0xe003 575 #define MATCH_C_FLD 0x2000 576 #define MASK_C_FLD 0xe003 577 #define MATCH_C_LW 0x4000 578 #define MASK_C_LW 0xe003 579 #define MATCH_C_FLW 0x6000 580 #define MASK_C_FLW 0xe003 581 #define MATCH_C_FSD 0xa000 582 #define MASK_C_FSD 0xe003 583 #define MATCH_C_SW 0xc000 584 #define MASK_C_SW 0xe003 585 #define MATCH_C_FSW 0xe000 586 #define MASK_C_FSW 0xe003 587 #define MATCH_C_ADDI 0x1 588 #define MASK_C_ADDI 0xe003 589 #define MATCH_C_JAL 0x2001 590 #define MASK_C_JAL 0xe003 591 #define MATCH_C_LI 0x4001 592 #define MASK_C_LI 0xe003 593 #define MATCH_C_LUI 0x6001 594 #define MASK_C_LUI 0xe003 595 #define MATCH_C_SRLI 0x8001 596 #define MASK_C_SRLI 0xec03 597 #define MATCH_C_SRAI 0x8401 598 #define MASK_C_SRAI 0xec03 599 #define MATCH_C_ANDI 0x8801 600 #define MASK_C_ANDI 0xec03 601 #define MATCH_C_SUB 0x8c01 602 #define MASK_C_SUB 0xfc63 603 #define MATCH_C_XOR 0x8c21 604 #define MASK_C_XOR 0xfc63 605 #define MATCH_C_OR 0x8c41 606 #define MASK_C_OR 0xfc63 607 #define MATCH_C_AND 0x8c61 608 #define MASK_C_AND 0xfc63 609 #define MATCH_C_SUBW 0x9c01 610 #define MASK_C_SUBW 0xfc63 611 #define MATCH_C_ADDW 0x9c21 612 #define MASK_C_ADDW 0xfc63 613 #define MATCH_C_J 0xa001 614 #define MASK_C_J 0xe003 615 #define MATCH_C_BEQZ 0xc001 616 #define MASK_C_BEQZ 0xe003 617 #define MATCH_C_BNEZ 0xe001 618 #define MASK_C_BNEZ 0xe003 619 #define MATCH_C_SLLI 0x2 620 #define MASK_C_SLLI 0xe003 621 #define MATCH_C_FLDSP 0x2002 622 #define MASK_C_FLDSP 0xe003 623 #define MATCH_C_LWSP 0x4002 624 #define MASK_C_LWSP 0xe003 625 #define MATCH_C_FLWSP 0x6002 626 #define MASK_C_FLWSP 0xe003 627 #define MATCH_C_MV 0x8002 628 #define MASK_C_MV 0xf003 629 #define MATCH_C_ADD 0x9002 630 #define MASK_C_ADD 0xf003 631 #define MATCH_C_FSDSP 0xa002 632 #define MASK_C_FSDSP 0xe003 633 #define MATCH_C_SWSP 0xc002 634 #define MASK_C_SWSP 0xe003 635 #define MATCH_C_FSWSP 0xe002 636 #define MASK_C_FSWSP 0xe003 637 #define MATCH_CUSTOM0 0xb 638 #define MASK_CUSTOM0 0x707f 639 #define MATCH_CUSTOM0_RS1 0x200b 640 #define MASK_CUSTOM0_RS1 0x707f 641 #define MATCH_CUSTOM0_RS1_RS2 0x300b 642 #define MASK_CUSTOM0_RS1_RS2 0x707f 643 #define MATCH_CUSTOM0_RD 0x400b 644 #define MASK_CUSTOM0_RD 0x707f 645 #define MATCH_CUSTOM0_RD_RS1 0x600b 646 #define MASK_CUSTOM0_RD_RS1 0x707f 647 #define MATCH_CUSTOM0_RD_RS1_RS2 0x700b 648 #define MASK_CUSTOM0_RD_RS1_RS2 0x707f 649 #define MATCH_CUSTOM1 0x2b 650 #define MASK_CUSTOM1 0x707f 651 #define MATCH_CUSTOM1_RS1 0x202b 652 #define MASK_CUSTOM1_RS1 0x707f 653 #define MATCH_CUSTOM1_RS1_RS2 0x302b 654 #define MASK_CUSTOM1_RS1_RS2 0x707f 655 #define MATCH_CUSTOM1_RD 0x402b 656 #define MASK_CUSTOM1_RD 0x707f 657 #define MATCH_CUSTOM1_RD_RS1 0x602b 658 #define MASK_CUSTOM1_RD_RS1 0x707f 659 #define MATCH_CUSTOM1_RD_RS1_RS2 0x702b 660 #define MASK_CUSTOM1_RD_RS1_RS2 0x707f 661 #define MATCH_CUSTOM2 0x5b 662 #define MASK_CUSTOM2 0x707f 663 #define MATCH_CUSTOM2_RS1 0x205b 664 #define MASK_CUSTOM2_RS1 0x707f 665 #define MATCH_CUSTOM2_RS1_RS2 0x305b 666 #define MASK_CUSTOM2_RS1_RS2 0x707f 667 #define MATCH_CUSTOM2_RD 0x405b 668 #define MASK_CUSTOM2_RD 0x707f 669 #define MATCH_CUSTOM2_RD_RS1 0x605b 670 #define MASK_CUSTOM2_RD_RS1 0x707f 671 #define MATCH_CUSTOM2_RD_RS1_RS2 0x705b 672 #define MASK_CUSTOM2_RD_RS1_RS2 0x707f 673 #define MATCH_CUSTOM3 0x7b 674 #define MASK_CUSTOM3 0x707f 675 #define MATCH_CUSTOM3_RS1 0x207b 676 #define MASK_CUSTOM3_RS1 0x707f 677 #define MATCH_CUSTOM3_RS1_RS2 0x307b 678 #define MASK_CUSTOM3_RS1_RS2 0x707f 679 #define MATCH_CUSTOM3_RD 0x407b 680 #define MASK_CUSTOM3_RD 0x707f 681 #define MATCH_CUSTOM3_RD_RS1 0x607b 682 #define MASK_CUSTOM3_RD_RS1 0x707f 683 #define MATCH_CUSTOM3_RD_RS1_RS2 0x707b 684 #define MASK_CUSTOM3_RD_RS1_RS2 0x707f 685 #define CSR_FFLAGS 0x1 688 #define CSR_CYCLE 0xc00 689 #define CSR_TIME 0xc01 690 #define CSR_INSTRET 0xc02 691 #define CSR_HPMCOUNTER3 0xc03 692 #define CSR_HPMCOUNTER4 0xc04 693 #define CSR_HPMCOUNTER5 0xc05 694 #define CSR_HPMCOUNTER6 0xc06 695 #define CSR_HPMCOUNTER7 0xc07 696 #define CSR_HPMCOUNTER8 0xc08 697 #define CSR_HPMCOUNTER9 0xc09 698 #define CSR_HPMCOUNTER10 0xc0a 699 #define CSR_HPMCOUNTER11 0xc0b 700 #define CSR_HPMCOUNTER12 0xc0c 701 #define CSR_HPMCOUNTER13 0xc0d 702 #define CSR_HPMCOUNTER14 0xc0e 703 #define CSR_HPMCOUNTER15 0xc0f 704 #define CSR_HPMCOUNTER16 0xc10 705 #define CSR_HPMCOUNTER17 0xc11 706 #define CSR_HPMCOUNTER18 0xc12 707 #define CSR_HPMCOUNTER19 0xc13 708 #define CSR_HPMCOUNTER20 0xc14 709 #define CSR_HPMCOUNTER21 0xc15 710 #define CSR_HPMCOUNTER22 0xc16 711 #define CSR_HPMCOUNTER23 0xc17 712 #define CSR_HPMCOUNTER24 0xc18 713 #define CSR_HPMCOUNTER25 0xc19 714 #define CSR_HPMCOUNTER26 0xc1a 715 #define CSR_HPMCOUNTER27 0xc1b 716 #define CSR_HPMCOUNTER28 0xc1c 717 #define CSR_HPMCOUNTER29 0xc1d 718 #define CSR_HPMCOUNTER30 0xc1e 719 #define CSR_HPMCOUNTER31 0xc1f 720 #define CSR_SSTATUS 0x100 721 #define CSR_SIE 0x104 722 #define CSR_STVEC 0x105 723 #define CSR_SSCRATCH 0x140 724 #define CSR_SEPC 0x141 725 #define CSR_SCAUSE 0x142 726 #define CSR_SBADADDR 0x143 727 #define CSR_SIP 0x144 728 #define CSR_SPTBR 0x180 729 #define CSR_MSTATUS 0x300 730 #define CSR_MISA 0x301 731 #define CSR_MEDELEG 0x302 732 #define CSR_MIDELEG 0x303 733 #define CSR_MIE 0x304 734 #define CSR_MTVEC 0x305 735 #define CSR_MCOUNTEREN 0x306 736 #define CSR_MSCRATCH 0x340 737 #define CSR_MEPC 0x341 738 #define CSR_MCAUSE 0x342 739 #define CSR_MBADADDR 0x343 740 #define CSR_MIP 0x344 741 #define CSR_MSCRATCHCSWL 0x349 742 #define CSR_TSELECT 0x7a0 743 #define CSR_TDATA1 0x7a1 744 #define CSR_TDATA2 0x7a2 745 #define CSR_TDATA3 0x7a3 746 #define CSR_DCSR 0x7b0 747 #define CSR_DPC 0x7b1 748 #define CSR_DSCRATCH 0x7b2 749 #define CSR_MCYCLE 0xb00 750 #define CSR_MINSTRET 0xb02 751 #define CSR_MHPMCOUNTER3 0xb03 752 #define CSR_MHPMCOUNTER4 0xb04 753 #define CSR_MHPMCOUNTER5 0xb05 754 #define CSR_MHPMCOUNTER6 0xb06 755 #define CSR_MHPMCOUNTER7 0xb07 756 #define CSR_MHPMCOUNTER8 0xb08 757 #define CSR_MHPMCOUNTER9 0xb09 758 #define CSR_MHPMCOUNTER10 0xb0a 759 #define CSR_MHPMCOUNTER11 0xb0b 760 #define CSR_MHPMCOUNTER12 0xb0c 761 #define CSR_MHPMCOUNTER13 0xb0d 762 #define CSR_MHPMCOUNTER14 0xb0e 763 #define CSR_MHPMCOUNTER15 0xb0f 764 #define CSR_MHPMCOUNTER16 0xb10 765 #define CSR_MHPMCOUNTER17 0xb11 766 #define CSR_MHPMCOUNTER18 0xb12 767 #define CSR_MHPMCOUNTER19 0xb13 768 #define CSR_MHPMCOUNTER20 0xb14 769 #define CSR_MHPMCOUNTER21 0xb15 770 #define CSR_MHPMCOUNTER22 0xb16 771 #define CSR_MHPMCOUNTER23 0xb17 772 #define CSR_MHPMCOUNTER24 0xb18 773 #define CSR_MHPMCOUNTER25 0xb19 774 #define CSR_MHPMCOUNTER26 0xb1a 775 #define CSR_MHPMCOUNTER27 0xb1b 776 #define CSR_MHPMCOUNTER28 0xb1c 777 #define CSR_MHPMCOUNTER29 0xb1d 778 #define CSR_MHPMCOUNTER30 0xb1e 779 #define CSR_MHPMCOUNTER31 0xb1f 780 #define CSR_MUCOUNTEREN 0x320 781 #define CSR_MSCOUNTEREN 0x321 782 #define CSR_MHPMEVENT3 0x323 783 #define CSR_MHPMEVENT4 0x324 784 #define CSR_MHPMEVENT5 0x325 785 #define CSR_MHPMEVENT6 0x326 786 #define CSR_MHPMEVENT7 0x327 787 #define CSR_MHPMEVENT8 0x328 788 #define CSR_MHPMEVENT9 0x329 789 #define CSR_MHPMEVENT10 0x32a 790 #define CSR_MHPMEVENT11 0x32b 791 #define CSR_MHPMEVENT12 0x32c 792 #define CSR_MHPMEVENT13 0x32d 793 #define CSR_MHPMEVENT14 0x32e 794 #define CSR_MHPMEVENT15 0x32f 795 #define CSR_MHPMEVENT16 0x330 796 #define CSR_MHPMEVENT17 0x331 797 #define CSR_MHPMEVENT18 0x332 798 #define CSR_MHPMEVENT19 0x333 799 #define CSR_MHPMEVENT20 0x334 800 #define CSR_MHPMEVENT21 0x335 801 #define CSR_MHPMEVENT22 0x336 802 #define CSR_MHPMEVENT23 0x337 803 #define CSR_MHPMEVENT24 0x338 804 #define CSR_MHPMEVENT25 0x339 805 #define CSR_MHPMEVENT26 0x33a 806 #define CSR_MHPMEVENT27 0x33b 807 #define CSR_MHPMEVENT28 0x33c 808 #define CSR_MHPMEVENT29 0x33d 809 #define CSR_MHPMEVENT30 0x33e 810 #define CSR_MHPMEVENT31 0x33f 811 #define CSR_MVENDORID 0xf11 812 #define CSR_MARCHID 0xf12 813 #define CSR_MIMPID 0xf13 814 #define CSR_MHARTID 0xf14 815 #define CSR_CYCLEH 0xc80 816 #define CSR_TIMEH 0xc81 817 #define CSR_INSTRETH 0xc82 818 #define CSR_HPMCOUNTER3H 0xc83 819 #define CSR_HPMCOUNTER4H 0xc84 820 #define CSR_HPMCOUNTER5H 0xc85 821 #define CSR_HPMCOUNTER6H 0xc86 822 #define CSR_HPMCOUNTER7H 0xc87 823 #define CSR_HPMCOUNTER8H 0xc88 824 #define CSR_HPMCOUNTER9H 0xc89 825 #define CSR_HPMCOUNTER10H 0xc8a 826 #define CSR_HPMCOUNTER11H 0xc8b 827 #define CSR_HPMCOUNTER12H 0xc8c 828 #define CSR_HPMCOUNTER13H 0xc8d 829 #define CSR_HPMCOUNTER14H 0xc8e 830 #define CSR_HPMCOUNTER15H 0xc8f 831 #define CSR_HPMCOUNTER16H 0xc90 832 #define CSR_HPMCOUNTER17H 0xc91 833 #define CSR_HPMCOUNTER18H 0xc92 834 #define CSR_HPMCOUNTER19H 0xc93 835 #define CSR_HPMCOUNTER20H 0xc94 836 #define CSR_HPMCOUNTER21H 0xc95 837 #define CSR_HPMCOUNTER22H 0xc96 838 #define CSR_HPMCOUNTER23H 0xc97 839 #define CSR_HPMCOUNTER24H 0xc98 840 #define CSR_HPMCOUNTER25H 0xc99 841 #define CSR_HPMCOUNTER26H 0xc9a 842 #define CSR_HPMCOUNTER27H 0xc9b 843 #define CSR_HPMCOUNTER28H 0xc9c 844 #define CSR_HPMCOUNTER29H 0xc9d 845 #define CSR_HPMCOUNTER30H 0xc9e 846 #define CSR_HPMCOUNTER31H 0xc9f 847 #define CSR_MCYCLEH 0xb80 848 #define CSR_MINSTRETH 0xb82 849 #define CSR_MHPMCOUNTER3H 0xb83 850 #define CSR_MHPMCOUNTER4H 0xb84 851 #define CSR_MHPMCOUNTER5H 0xb85 852 #define CSR_MHPMCOUNTER6H 0xb86 853 #define CSR_MHPMCOUNTER7H 0xb87 854 #define CSR_MHPMCOUNTER8H 0xb88 855 #define CSR_MHPMCOUNTER9H 0xb89 856 #define CSR_MHPMCOUNTER10H 0xb8a 857 #define CSR_MHPMCOUNTER11H 0xb8b 858 #define CSR_MHPMCOUNTER12H 0xb8c 859 #define CSR_MHPMCOUNTER13H 0xb8d 860 #define CSR_MHPMCOUNTER14H 0xb8e 861 #define CSR_MHPMCOUNTER15H 0xb8f 862 #define CSR_MHPMCOUNTER16H 0xb90 863 #define CSR_MHPMCOUNTER17H 0xb91 864 #define CSR_MHPMCOUNTER18H 0xb92 865 #define CSR_MHPMCOUNTER19H 0xb93 866 #define CSR_MHPMCOUNTER20H 0xb94 867 #define CSR_MHPMCOUNTER21H 0xb95 868 #define CSR_MHPMCOUNTER22H 0xb96 869 #define CSR_MHPMCOUNTER23H 0xb97 870 #define CSR_MHPMCOUNTER24H 0xb98 871 #define CSR_MHPMCOUNTER25H 0xb99 872 #define CSR_MHPMCOUNTER26H 0xb9a 873 #define CSR_MHPMCOUNTER27H 0xb9b 874 #define CSR_MHPMCOUNTER28H 0xb9c 875 #define CSR_MHPMCOUNTER29H 0xb9d 876 #define CSR_MHPMCOUNTER30H 0xb9e 877 #define CSR_MHPMCOUNTER31H 0xb9f 880 #define CSR_MTVT 0x307 881 #define CSR_MNXTI 0x345 883 #define CSR_MCOUNTINHIBIT 0x320 885 #define CSR_MNVEC 0x7C3 887 #define CSR_MTVT2 0x7EC 888 #define CSR_JALMNXTI 0x7ED 889 #define CSR_PUSHMCAUSE 0x7EE 890 #define CSR_PUSHMEPC 0x7EF 891 #define CSR_PUSHMSUBM 0x7EB 893 #define CSR_WFE 0x810 894 #define CSR_SLEEPVALUE 0x811 895 #define CSR_TXEVT 0x812 897 #define CSR_MMISC_CTL 0x7d0 898 #define CSR_MSUBM 0x7c4 901 #define CAUSE_MISALIGNED_FETCH 0x0 902 #define CAUSE_FAULT_FETCH 0x1 903 #define CAUSE_ILLEGAL_INSTRUCTION 0x2 904 #define CAUSE_BREAKPOINT 0x3 905 #define CAUSE_MISALIGNED_LOAD 0x4 906 #define CAUSE_FAULT_LOAD 0x5 907 #define CAUSE_MISALIGNED_STORE 0x6 908 #define CAUSE_FAULT_STORE 0x7 909 #define CAUSE_USER_ECALL 0x8 910 #define CAUSE_SUPERVISOR_ECALL 0x9 911 #define CAUSE_HYPERVISOR_ECALL 0xa 912 #define CAUSE_MACHINE_ECALL 0xb 1338 #ifdef DECLARE_CAUSE #define MATCH_C_SD
Definition: riscv_encoding.h:565
#define MATCH_CUSTOM1_RD_RS1_RS2
Definition: riscv_encoding.h:659
#define MATCH_FEQ_D
Definition: riscv_encoding.h:483
#define MATCH_FENCE
Definition: riscv_encoding.h:325
#define MASK_AMOXOR_W
Definition: riscv_encoding.h:358
#define CSR_MHPMEVENT18
Definition: riscv_encoding.h:797
#define MASK_FSGNJN_S
Definition: riscv_encoding.h:440
#define CSR_DPC
Definition: riscv_encoding.h:747
#define MASK_C_FLD
Definition: riscv_encoding.h:576
#define MASK_SD
Definition: riscv_encoding.h:324
#define MASK_FLD
Definition: riscv_encoding.h:532
#define CSR_MEDELEG
Definition: riscv_encoding.h:731
#define MASK_CUSTOM0_RD_RS1
Definition: riscv_encoding.h:646
#define MASK_C_NOP
Definition: riscv_encoding.h:554
#define CSR_MINSTRET
Definition: riscv_encoding.h:750
#define MASK_DIV
Definition: riscv_encoding.h:338
#define MASK_C_SD
Definition: riscv_encoding.h:566
#define MASK_C_LW
Definition: riscv_encoding.h:578
#define MATCH_SLTI
Definition: riscv_encoding.h:251
#define MATCH_LH
Definition: riscv_encoding.h:305
#define MATCH_FMV_X_S
Definition: riscv_encoding.h:493
#define CSR_MHPMCOUNTER18
Definition: riscv_encoding.h:766
#define MATCH_FCLASS_S
Definition: riscv_encoding.h:495
#define MASK_C_FSDSP
Definition: riscv_encoding.h:632
#define CSR_MHPMCOUNTER19
Definition: riscv_encoding.h:767
#define MASK_FCVT_D_LU
Definition: riscv_encoding.h:526
#define MASK_FMV_D_X
Definition: riscv_encoding.h:528
#define MASK_ADDIW
Definition: riscv_encoding.h:286
#define MATCH_FSGNJ_S
Definition: riscv_encoding.h:437
#define MASK_ANDI
Definition: riscv_encoding.h:264
#define CSR_MHPMEVENT5
Definition: riscv_encoding.h:784
#define MATCH_REM
Definition: riscv_encoding.h:341
#define CSR_HPMCOUNTER19
Definition: riscv_encoding.h:707
#define MASK_LR_D
Definition: riscv_encoding.h:396
#define CSR_MBADADDR
Definition: riscv_encoding.h:739
#define MATCH_SLT
Definition: riscv_encoding.h:271
#define MATCH_CSRRWI
Definition: riscv_encoding.h:423
#define CSR_MHPMCOUNTER10
Definition: riscv_encoding.h:758
#define MATCH_FENCE_I
Definition: riscv_encoding.h:327
#define CSR_MHPMEVENT29
Definition: riscv_encoding.h:808
#define MASK_SLTI
Definition: riscv_encoding.h:252
#define MATCH_FSQRT_D
Definition: riscv_encoding.h:471
#define MATCH_CUSTOM3_RD_RS1_RS2
Definition: riscv_encoding.h:683
#define MATCH_C_SW
Definition: riscv_encoding.h:583
#define MATCH_MRET
Definition: riscv_encoding.h:409
#define CSR_MHPMCOUNTER12H
Definition: riscv_encoding.h:858
#define MATCH_SRA
Definition: riscv_encoding.h:279
#define MATCH_ADDIW
Definition: riscv_encoding.h:285
#define MATCH_MULHSU
Definition: riscv_encoding.h:333
#define CSR_HPMCOUNTER16
Definition: riscv_encoding.h:704
#define CSR_MHPMEVENT26
Definition: riscv_encoding.h:805
#define MATCH_FMIN_S
Definition: riscv_encoding.h:443
#define MATCH_FMSUB_D
Definition: riscv_encoding.h:547
#define MATCH_AND
Definition: riscv_encoding.h:283
#define CSR_HPMCOUNTER26H
Definition: riscv_encoding.h:841
#define CSR_HPMCOUNTER20H
Definition: riscv_encoding.h:835
#define MATCH_DIV
Definition: riscv_encoding.h:337
#define MASK_FCVT_S_WU
Definition: riscv_encoding.h:512
#define MASK_FLW
Definition: riscv_encoding.h:530
#define MATCH_FSQRT_S
Definition: riscv_encoding.h:447
#define MATCH_FSGNJX_S
Definition: riscv_encoding.h:441
#define MASK_SRL
Definition: riscv_encoding.h:278
#define CSR_TIMEH
Definition: riscv_encoding.h:816
#define CSR_MHPMCOUNTER29
Definition: riscv_encoding.h:777
#define CSR_MHPMCOUNTER30H
Definition: riscv_encoding.h:876
#define MASK_REM
Definition: riscv_encoding.h:342
#define MASK_FENCE
Definition: riscv_encoding.h:326
#define MATCH_C_ADD
Definition: riscv_encoding.h:629
#define MATCH_SRAIW
Definition: riscv_encoding.h:291
#define MASK_SRLW
Definition: riscv_encoding.h:300
#define CSR_MHPMEVENT4
Definition: riscv_encoding.h:783
#define MASK_SC_W
Definition: riscv_encoding.h:376
#define MASK_JALR
Definition: riscv_encoding.h:240
#define CSR_HPMCOUNTER7
Definition: riscv_encoding.h:695
#define MATCH_LBU
Definition: riscv_encoding.h:311
#define MATCH_C_EBREAK
Definition: riscv_encoding.h:561
#define MATCH_AMOSWAP_D
Definition: riscv_encoding.h:393
#define CSR_MHPMEVENT23
Definition: riscv_encoding.h:802
#define CSR_HPMCOUNTER5
Definition: riscv_encoding.h:693
#define CSR_HPMCOUNTER13H
Definition: riscv_encoding.h:828
#define MASK_CUSTOM2_RD_RS1
Definition: riscv_encoding.h:670
#define MATCH_FMADD_D
Definition: riscv_encoding.h:545
#define MATCH_AMOMIN_D
Definition: riscv_encoding.h:385
#define MASK_FSD
Definition: riscv_encoding.h:536
#define MASK_C_J
Definition: riscv_encoding.h:614
#define CSR_MVENDORID
Definition: riscv_encoding.h:811
#define CSR_MHPMEVENT21
Definition: riscv_encoding.h:800
#define CSR_HPMCOUNTER9
Definition: riscv_encoding.h:697
#define MASK_AMOMAX_D
Definition: riscv_encoding.h:388
#define CSR_MHPMCOUNTER7
Definition: riscv_encoding.h:755
#define CSR_STVEC
Definition: riscv_encoding.h:722
#define CSR_MHPMCOUNTER20
Definition: riscv_encoding.h:768
#define CSR_MHPMCOUNTER20H
Definition: riscv_encoding.h:866
#define CAUSE_FAULT_LOAD
Definition: riscv_encoding.h:906
#define MASK_C_FLDSP
Definition: riscv_encoding.h:622
#define MASK_FCVT_W_S
Definition: riscv_encoding.h:486
#define MATCH_LUI
Definition: riscv_encoding.h:243
#define MATCH_C_BEQZ
Definition: riscv_encoding.h:615
#define MATCH_BNE
Definition: riscv_encoding.h:229
#define MASK_FCVT_S_D
Definition: riscv_encoding.h:468
#define MASK_C_ANDI
Definition: riscv_encoding.h:600
#define CSR_MHPMEVENT22
Definition: riscv_encoding.h:801
#define CSR_MHPMEVENT8
Definition: riscv_encoding.h:787
#define MASK_SRAIW
Definition: riscv_encoding.h:292
#define CSR_MHPMCOUNTER31
Definition: riscv_encoding.h:779
#define MASK_CSRRWI
Definition: riscv_encoding.h:424
#define MASK_LR_W
Definition: riscv_encoding.h:374
#define MATCH_LHU
Definition: riscv_encoding.h:313
#define CSR_HPMCOUNTER22
Definition: riscv_encoding.h:710
#define CSR_MHPMCOUNTER22
Definition: riscv_encoding.h:770
#define MASK_FMADD_S
Definition: riscv_encoding.h:538
#define CSR_SBADADDR
Definition: riscv_encoding.h:726
#define MASK_BEQ
Definition: riscv_encoding.h:228
#define MATCH_CUSTOM0_RD_RS1
Definition: riscv_encoding.h:645
#define CSR_MHPMCOUNTER22H
Definition: riscv_encoding.h:868
#define MASK_DIVU
Definition: riscv_encoding.h:340
#define MATCH_CUSTOM3_RD_RS1
Definition: riscv_encoding.h:681
#define MATCH_FLT_S
Definition: riscv_encoding.h:475
#define MASK_FSGNJX_D
Definition: riscv_encoding.h:462
#define MATCH_SRL
Definition: riscv_encoding.h:277
#define MATCH_C_ADDI16SP
Definition: riscv_encoding.h:555
#define CSR_HPMCOUNTER31H
Definition: riscv_encoding.h:846
#define MASK_CUSTOM3_RS1
Definition: riscv_encoding.h:676
#define CSR_MHPMCOUNTER12
Definition: riscv_encoding.h:760
#define MATCH_CUSTOM0_RD_RS1_RS2
Definition: riscv_encoding.h:647
#define CSR_HPMCOUNTER8
Definition: riscv_encoding.h:696
#define MASK_URET
Definition: riscv_encoding.h:404
#define MASK_FCVT_S_L
Definition: riscv_encoding.h:514
#define MASK_AMOAND_W
Definition: riscv_encoding.h:362
#define MASK_FCVT_D_W
Definition: riscv_encoding.h:520
#define MASK_SLLIW
Definition: riscv_encoding.h:288
#define MASK_CSRRS
Definition: riscv_encoding.h:420
#define CSR_HPMCOUNTER12
Definition: riscv_encoding.h:700
#define MASK_SFENCE_VM
Definition: riscv_encoding.h:414
#define CSR_MHPMCOUNTER26
Definition: riscv_encoding.h:774
#define MATCH_FCVT_L_D
Definition: riscv_encoding.h:501
#define CSR_MHPMCOUNTER21
Definition: riscv_encoding.h:769
#define CSR_HPMCOUNTER15
Definition: riscv_encoding.h:703
#define MASK_C_ADDI4SPN
Definition: riscv_encoding.h:574
#define MATCH_SLLI
Definition: riscv_encoding.h:249
#define MATCH_FCVT_WU_D
Definition: riscv_encoding.h:499
#define MATCH_URET
Definition: riscv_encoding.h:403
#define MATCH_SLTU
Definition: riscv_encoding.h:273
#define CSR_HPMCOUNTER19H
Definition: riscv_encoding.h:834
#define CSR_TSELECT
Definition: riscv_encoding.h:742
#define MATCH_C_JR
Definition: riscv_encoding.h:557
#define MASK_C_FSD
Definition: riscv_encoding.h:582
#define MASK_CUSTOM1
Definition: riscv_encoding.h:650
#define CSR_HPMCOUNTER25H
Definition: riscv_encoding.h:840
#define CSR_MHPMCOUNTER8
Definition: riscv_encoding.h:756
#define MATCH_C_FSW
Definition: riscv_encoding.h:585
#define MATCH_MULW
Definition: riscv_encoding.h:345
#define MATCH_FCVT_S_WU
Definition: riscv_encoding.h:511
#define MATCH_FLE_D
Definition: riscv_encoding.h:479
#define MATCH_FNMADD_S
Definition: riscv_encoding.h:543
#define MATCH_C_SUB
Definition: riscv_encoding.h:601
#define CSR_MHPMCOUNTER16H
Definition: riscv_encoding.h:862
#define CSR_CYCLE
Definition: riscv_encoding.h:688
#define CAUSE_USER_ECALL
Definition: riscv_encoding.h:909
#define CSR_MHARTID
Definition: riscv_encoding.h:814
#define MATCH_C_LD
Definition: riscv_encoding.h:563
#define MASK_BNE
Definition: riscv_encoding.h:230
#define MASK_FLT_D
Definition: riscv_encoding.h:482
#define CSR_MHPMCOUNTER17H
Definition: riscv_encoding.h:863
#define CSR_SSTATUS
Definition: riscv_encoding.h:720
#define CAUSE_HYPERVISOR_ECALL
Definition: riscv_encoding.h:911
#define MATCH_FLT_D
Definition: riscv_encoding.h:481
#define MATCH_FSGNJ_D
Definition: riscv_encoding.h:457
#define CAUSE_BREAKPOINT
Definition: riscv_encoding.h:904
#define CSR_FRM
Definition: riscv_encoding.h:686
#define MASK_ECALL
Definition: riscv_encoding.h:400
#define CSR_MHPMCOUNTER14H
Definition: riscv_encoding.h:860
#define MASK_SB
Definition: riscv_encoding.h:318
#define CSR_MIE
Definition: riscv_encoding.h:733
#define MATCH_SRET
Definition: riscv_encoding.h:405
#define MATCH_CUSTOM2_RD_RS1
Definition: riscv_encoding.h:669
#define MATCH_CUSTOM0_RS1
Definition: riscv_encoding.h:639
#define CSR_HPMCOUNTER5H
Definition: riscv_encoding.h:820
#define MATCH_AMOXOR_W
Definition: riscv_encoding.h:357
#define MATCH_CSRRW
Definition: riscv_encoding.h:417
#define CSR_HPMCOUNTER16H
Definition: riscv_encoding.h:831
#define MATCH_C_OR
Definition: riscv_encoding.h:605
#define MATCH_SC_W
Definition: riscv_encoding.h:375
#define MASK_CUSTOM0_RD
Definition: riscv_encoding.h:644
#define MATCH_AMOADD_W
Definition: riscv_encoding.h:355
#define CSR_MHPMEVENT3
Definition: riscv_encoding.h:782
#define CSR_HPMCOUNTER12H
Definition: riscv_encoding.h:827
#define MATCH_CSRRSI
Definition: riscv_encoding.h:425
#define MASK_FDIV_D
Definition: riscv_encoding.h:456
#define CSR_MHPMCOUNTER10H
Definition: riscv_encoding.h:856
#define MATCH_C_SRLI
Definition: riscv_encoding.h:595
#define CSR_MHPMCOUNTER11H
Definition: riscv_encoding.h:857
#define MATCH_FMSUB_S
Definition: riscv_encoding.h:539
#define CSR_MINSTRETH
Definition: riscv_encoding.h:848
#define MATCH_FSGNJX_D
Definition: riscv_encoding.h:461
#define MASK_C_EBREAK
Definition: riscv_encoding.h:562
#define MATCH_LW
Definition: riscv_encoding.h:307
#define MASK_CUSTOM0_RD_RS1_RS2
Definition: riscv_encoding.h:648
#define MASK_LD
Definition: riscv_encoding.h:310
#define CSR_MHPMCOUNTER24
Definition: riscv_encoding.h:772
#define MASK_BGE
Definition: riscv_encoding.h:234
#define CSR_HPMCOUNTER29
Definition: riscv_encoding.h:717
#define MASK_AMOMAXU_D
Definition: riscv_encoding.h:392
#define MASK_SH
Definition: riscv_encoding.h:320
#define MATCH_C_SWSP
Definition: riscv_encoding.h:633
#define CSR_SCAUSE
Definition: riscv_encoding.h:725
#define MASK_FMADD_D
Definition: riscv_encoding.h:546
#define MATCH_SRLI
Definition: riscv_encoding.h:257
#define MATCH_AMOOR_D
Definition: riscv_encoding.h:381
#define MASK_FNMADD_D
Definition: riscv_encoding.h:552
#define CAUSE_MACHINE_ECALL
Definition: riscv_encoding.h:912
#define MASK_C_BNEZ
Definition: riscv_encoding.h:618
#define MATCH_FCVT_W_D
Definition: riscv_encoding.h:497
#define MASK_CSRRW
Definition: riscv_encoding.h:418
#define MASK_FCVT_WU_S
Definition: riscv_encoding.h:488
#define MATCH_C_LUI
Definition: riscv_encoding.h:593
#define MASK_FCLASS_S
Definition: riscv_encoding.h:496
#define CSR_HPMCOUNTER29H
Definition: riscv_encoding.h:844
#define MATCH_AMOSWAP_W
Definition: riscv_encoding.h:371
#define MATCH_CUSTOM3_RS1
Definition: riscv_encoding.h:675
#define MASK_FMIN_D
Definition: riscv_encoding.h:464
#define CSR_MHPMEVENT17
Definition: riscv_encoding.h:796
#define MASK_FLE_S
Definition: riscv_encoding.h:474
#define MASK_CUSTOM3_RD
Definition: riscv_encoding.h:680
#define CSR_HPMCOUNTER13
Definition: riscv_encoding.h:701
#define MASK_SLLI
Definition: riscv_encoding.h:250
#define CSR_MHPMCOUNTER31H
Definition: riscv_encoding.h:877
#define MASK_C_JALR
Definition: riscv_encoding.h:560
#define CSR_MHPMCOUNTER17
Definition: riscv_encoding.h:765
#define MATCH_FNMSUB_S
Definition: riscv_encoding.h:541
#define MATCH_FCVT_D_LU
Definition: riscv_encoding.h:525
#define CSR_MHPMEVENT28
Definition: riscv_encoding.h:807
#define MATCH_C_JALR
Definition: riscv_encoding.h:559
#define MASK_CUSTOM1_RS1
Definition: riscv_encoding.h:652
#define MASK_C_SUB
Definition: riscv_encoding.h:602
#define MATCH_C_SDSP
Definition: riscv_encoding.h:571
#define MASK_MULHSU
Definition: riscv_encoding.h:334
#define CSR_MHPMCOUNTER16
Definition: riscv_encoding.h:764
#define MASK_XOR
Definition: riscv_encoding.h:276
#define MASK_FMUL_D
Definition: riscv_encoding.h:454
#define MASK_CUSTOM2_RS1_RS2
Definition: riscv_encoding.h:666
#define MATCH_REMUW
Definition: riscv_encoding.h:353
#define CSR_MHPMEVENT25
Definition: riscv_encoding.h:804
#define CSR_HPMCOUNTER18
Definition: riscv_encoding.h:706
#define MATCH_FLE_S
Definition: riscv_encoding.h:473
#define MATCH_C_LWSP
Definition: riscv_encoding.h:623
#define MATCH_C_XOR
Definition: riscv_encoding.h:603
#define MASK_AMOMAXU_W
Definition: riscv_encoding.h:370
#define MASK_CUSTOM2_RS1
Definition: riscv_encoding.h:664
#define MATCH_XORI
Definition: riscv_encoding.h:255
#define MASK_LUI
Definition: riscv_encoding.h:244
#define MATCH_FSD
Definition: riscv_encoding.h:535
#define MATCH_C_ADDW
Definition: riscv_encoding.h:611
#define MASK_SRET
Definition: riscv_encoding.h:406
#define MATCH_FADD_D
Definition: riscv_encoding.h:449
#define CSR_MHPMCOUNTER8H
Definition: riscv_encoding.h:854
#define MASK_AMOXOR_D
Definition: riscv_encoding.h:380
#define MATCH_C_ADDI
Definition: riscv_encoding.h:587
#define MATCH_C_FLD
Definition: riscv_encoding.h:575
#define MASK_FCVT_D_WU
Definition: riscv_encoding.h:522
#define MASK_FCVT_D_L
Definition: riscv_encoding.h:524
#define MATCH_BLT
Definition: riscv_encoding.h:231
#define MATCH_CUSTOM1_RD
Definition: riscv_encoding.h:655
#define CSR_HPMCOUNTER24H
Definition: riscv_encoding.h:839
#define CSR_HPMCOUNTER25
Definition: riscv_encoding.h:713
#define CSR_HPMCOUNTER28
Definition: riscv_encoding.h:716
#define MATCH_SUBW
Definition: riscv_encoding.h:295
#define MATCH_FSUB_D
Definition: riscv_encoding.h:451
#define MASK_FSGNJX_S
Definition: riscv_encoding.h:442
#define CSR_HPMCOUNTER11
Definition: riscv_encoding.h:699
#define MASK_ORI
Definition: riscv_encoding.h:262
#define MATCH_FCVT_D_W
Definition: riscv_encoding.h:519
#define MATCH_REMW
Definition: riscv_encoding.h:351
#define MATCH_SFENCE_VM
Definition: riscv_encoding.h:413
#define MATCH_C_ADDI4SPN
Definition: riscv_encoding.h:573
#define MATCH_LWU
Definition: riscv_encoding.h:315
#define CSR_HPMCOUNTER23H
Definition: riscv_encoding.h:838
#define MATCH_FMAX_D
Definition: riscv_encoding.h:465
#define CSR_MHPMCOUNTER7H
Definition: riscv_encoding.h:853
#define CSR_MIP
Definition: riscv_encoding.h:740
#define CSR_HPMCOUNTER7H
Definition: riscv_encoding.h:822
#define MASK_SLTIU
Definition: riscv_encoding.h:254
#define CSR_MHPMCOUNTER13H
Definition: riscv_encoding.h:859
#define CSR_HPMCOUNTER23
Definition: riscv_encoding.h:711
#define MASK_AMOMIN_D
Definition: riscv_encoding.h:386
#define CSR_CYCLEH
Definition: riscv_encoding.h:815
#define CSR_HPMCOUNTER27H
Definition: riscv_encoding.h:842
#define MATCH_FCVT_L_S
Definition: riscv_encoding.h:489
#define MATCH_C_LW
Definition: riscv_encoding.h:577
#define MATCH_SRAI
Definition: riscv_encoding.h:259
#define CSR_MHPMEVENT7
Definition: riscv_encoding.h:786
#define MATCH_C_ANDI
Definition: riscv_encoding.h:599
#define CSR_HPMCOUNTER14H
Definition: riscv_encoding.h:829
#define MASK_SUB
Definition: riscv_encoding.h:268
#define MASK_ADDI
Definition: riscv_encoding.h:248
#define MASK_DIVW
Definition: riscv_encoding.h:348
#define MATCH_FMV_S_X
Definition: riscv_encoding.h:517
#define CAUSE_FAULT_FETCH
Definition: riscv_encoding.h:902
#define CSR_HPMCOUNTER8H
Definition: riscv_encoding.h:823
#define MATCH_FCVT_LU_D
Definition: riscv_encoding.h:503
#define CSR_HPMCOUNTER4
Definition: riscv_encoding.h:692
#define MASK_CUSTOM1_RD_RS1
Definition: riscv_encoding.h:658
#define MASK_LHU
Definition: riscv_encoding.h:314
#define MASK_FCVT_S_LU
Definition: riscv_encoding.h:516
#define MATCH_CUSTOM2
Definition: riscv_encoding.h:661
#define MASK_MULW
Definition: riscv_encoding.h:346
#define CAUSE_FAULT_STORE
Definition: riscv_encoding.h:908
#define CSR_MHPMEVENT13
Definition: riscv_encoding.h:792
#define MATCH_FCVT_S_L
Definition: riscv_encoding.h:513
#define MASK_C_SW
Definition: riscv_encoding.h:584
#define CSR_MHPMEVENT11
Definition: riscv_encoding.h:790
#define MATCH_HRET
Definition: riscv_encoding.h:407
#define CSR_MIDELEG
Definition: riscv_encoding.h:732
#define MASK_FMAX_D
Definition: riscv_encoding.h:466
#define MASK_CSRRCI
Definition: riscv_encoding.h:428
#define MATCH_BLTU
Definition: riscv_encoding.h:235
#define MASK_HRET
Definition: riscv_encoding.h:408
#define MASK_C_FLW
Definition: riscv_encoding.h:580
#define MATCH_FCVT_W_S
Definition: riscv_encoding.h:485
#define CSR_MISA
Definition: riscv_encoding.h:730
#define MASK_BGEU
Definition: riscv_encoding.h:238
#define MATCH_FMUL_D
Definition: riscv_encoding.h:453
#define MASK_FSGNJ_S
Definition: riscv_encoding.h:438
#define MATCH_OR
Definition: riscv_encoding.h:281
#define CSR_HPMCOUNTER15H
Definition: riscv_encoding.h:830
#define MATCH_CUSTOM1_RD_RS1
Definition: riscv_encoding.h:657
#define MATCH_CUSTOM0_RS1_RS2
Definition: riscv_encoding.h:641
#define MATCH_FDIV_S
Definition: riscv_encoding.h:435
#define MATCH_FCVT_S_LU
Definition: riscv_encoding.h:515
#define MATCH_LR_W
Definition: riscv_encoding.h:373
#define CSR_MHPMEVENT14
Definition: riscv_encoding.h:793
#define CSR_MSCOUNTEREN
Definition: riscv_encoding.h:781
#define MATCH_C_FLDSP
Definition: riscv_encoding.h:621
#define MATCH_C_FSDSP
Definition: riscv_encoding.h:631
#define MASK_ADDW
Definition: riscv_encoding.h:294
#define MASK_C_FSW
Definition: riscv_encoding.h:586
#define MASK_BLTU
Definition: riscv_encoding.h:236
#define CSR_HPMCOUNTER24
Definition: riscv_encoding.h:712
#define CSR_INSTRETH
Definition: riscv_encoding.h:817
#define MASK_C_JR
Definition: riscv_encoding.h:558
#define MATCH_FSW
Definition: riscv_encoding.h:533
#define MASK_CSRRC
Definition: riscv_encoding.h:422
#define MASK_SC_D
Definition: riscv_encoding.h:398
#define MASK_FCVT_S_W
Definition: riscv_encoding.h:510
#define MATCH_FMADD_S
Definition: riscv_encoding.h:537
#define MATCH_ORI
Definition: riscv_encoding.h:261
#define MATCH_DIVUW
Definition: riscv_encoding.h:349
#define CSR_MHPMCOUNTER5H
Definition: riscv_encoding.h:851
#define CSR_HPMCOUNTER26
Definition: riscv_encoding.h:714
#define CSR_MHPMEVENT16
Definition: riscv_encoding.h:795
#define MATCH_SUB
Definition: riscv_encoding.h:267
#define CAUSE_SUPERVISOR_ECALL
Definition: riscv_encoding.h:910
#define MATCH_CSRRC
Definition: riscv_encoding.h:421
#define MATCH_LD
Definition: riscv_encoding.h:309
#define CSR_FCSR
Definition: riscv_encoding.h:687
#define MATCH_FMV_D_X
Definition: riscv_encoding.h:527
#define MATCH_BEQ
Definition: riscv_encoding.h:227
#define MASK_SLT
Definition: riscv_encoding.h:272
#define CSR_MHPMCOUNTER6
Definition: riscv_encoding.h:754
#define MASK_CUSTOM3
Definition: riscv_encoding.h:674
#define MASK_FSQRT_S
Definition: riscv_encoding.h:448
#define CSR_MHPMEVENT10
Definition: riscv_encoding.h:789
#define MASK_CUSTOM2_RD
Definition: riscv_encoding.h:668
#define MATCH_JALR
Definition: riscv_encoding.h:239
#define MASK_AMOSWAP_D
Definition: riscv_encoding.h:394
#define MASK_FADD_D
Definition: riscv_encoding.h:450
#define MASK_FCVT_L_D
Definition: riscv_encoding.h:502
#define MATCH_C_SLLI
Definition: riscv_encoding.h:619
#define CSR_MHPMEVENT19
Definition: riscv_encoding.h:798
#define MASK_FCVT_D_S
Definition: riscv_encoding.h:470
#define MASK_AMOMINU_W
Definition: riscv_encoding.h:368
#define MASK_C_SRLI
Definition: riscv_encoding.h:596
#define MASK_C_LDSP
Definition: riscv_encoding.h:570
#define MATCH_DIVW
Definition: riscv_encoding.h:347
#define CSR_HPMCOUNTER10
Definition: riscv_encoding.h:698
#define MATCH_FSGNJN_D
Definition: riscv_encoding.h:459
#define MATCH_CUSTOM0
Definition: riscv_encoding.h:637
#define CSR_MHPMCOUNTER28H
Definition: riscv_encoding.h:874
#define CSR_HPMCOUNTER14
Definition: riscv_encoding.h:702
#define MATCH_SH
Definition: riscv_encoding.h:319
#define MATCH_SB
Definition: riscv_encoding.h:317
#define MASK_MULH
Definition: riscv_encoding.h:332
#define MASK_AUIPC
Definition: riscv_encoding.h:246
#define MASK_FSGNJN_D
Definition: riscv_encoding.h:460
#define MASK_SW
Definition: riscv_encoding.h:322
#define CAUSE_MISALIGNED_LOAD
Definition: riscv_encoding.h:905
#define MATCH_FCVT_WU_S
Definition: riscv_encoding.h:487
#define MATCH_LR_D
Definition: riscv_encoding.h:395
#define MASK_MRET
Definition: riscv_encoding.h:410
#define MATCH_AMOXOR_D
Definition: riscv_encoding.h:379
#define MATCH_AMOMAX_W
Definition: riscv_encoding.h:365
#define MASK_FADD_S
Definition: riscv_encoding.h:430
#define MATCH_AMOMAXU_D
Definition: riscv_encoding.h:391
#define MATCH_ADDW
Definition: riscv_encoding.h:293
#define CSR_HPMCOUNTER11H
Definition: riscv_encoding.h:826
#define CSR_MHPMEVENT9
Definition: riscv_encoding.h:788
#define MASK_C_OR
Definition: riscv_encoding.h:606
#define MATCH_SRAW
Definition: riscv_encoding.h:301
#define MASK_AMOMINU_D
Definition: riscv_encoding.h:390
#define CSR_TIME
Definition: riscv_encoding.h:689
#define MATCH_DRET
Definition: riscv_encoding.h:411
#define MASK_C_XOR
Definition: riscv_encoding.h:604
#define MATCH_FADD_S
Definition: riscv_encoding.h:429
#define CSR_MHPMCOUNTER9
Definition: riscv_encoding.h:757
#define MATCH_CSRRCI
Definition: riscv_encoding.h:427
#define CSR_HPMCOUNTER30
Definition: riscv_encoding.h:718
#define MATCH_AMOAND_W
Definition: riscv_encoding.h:361
#define MATCH_FSUB_S
Definition: riscv_encoding.h:431
#define MASK_MULHU
Definition: riscv_encoding.h:336
#define MASK_FMUL_S
Definition: riscv_encoding.h:434
#define MATCH_CUSTOM1_RS1_RS2
Definition: riscv_encoding.h:653
#define CSR_INSTRET
Definition: riscv_encoding.h:690
#define MATCH_FNMADD_D
Definition: riscv_encoding.h:551
#define MATCH_C_ADDIW
Definition: riscv_encoding.h:567
#define MATCH_SW
Definition: riscv_encoding.h:321
#define MATCH_SD
Definition: riscv_encoding.h:323
#define MASK_CUSTOM3_RD_RS1_RS2
Definition: riscv_encoding.h:684
#define MASK_DRET
Definition: riscv_encoding.h:412
#define MASK_FLT_S
Definition: riscv_encoding.h:476
#define MASK_C_FLWSP
Definition: riscv_encoding.h:626
#define MASK_SRAW
Definition: riscv_encoding.h:302
#define MASK_FMV_X_D
Definition: riscv_encoding.h:506
#define MATCH_FMV_X_D
Definition: riscv_encoding.h:505
#define MATCH_BGEU
Definition: riscv_encoding.h:237
#define CSR_HPMCOUNTER27
Definition: riscv_encoding.h:715
#define MATCH_ANDI
Definition: riscv_encoding.h:263
#define CSR_MHPMCOUNTER24H
Definition: riscv_encoding.h:870
#define CSR_HPMCOUNTER20
Definition: riscv_encoding.h:708
#define MATCH_DIVU
Definition: riscv_encoding.h:339
#define MATCH_FEQ_S
Definition: riscv_encoding.h:477
#define CSR_MHPMCOUNTER5
Definition: riscv_encoding.h:753
#define MASK_FLE_D
Definition: riscv_encoding.h:480
#define MASK_JAL
Definition: riscv_encoding.h:242
#define MATCH_AMOAND_D
Definition: riscv_encoding.h:383
#define MATCH_FCVT_S_D
Definition: riscv_encoding.h:467
#define MATCH_AMOADD_D
Definition: riscv_encoding.h:377
#define MASK_FCVT_W_D
Definition: riscv_encoding.h:498
#define CSR_TDATA3
Definition: riscv_encoding.h:745
#define MASK_FDIV_S
Definition: riscv_encoding.h:436
#define MASK_CUSTOM0
Definition: riscv_encoding.h:638
#define MATCH_AMOMIN_W
Definition: riscv_encoding.h:363
#define MATCH_JAL
Definition: riscv_encoding.h:241
#define MATCH_SLTIU
Definition: riscv_encoding.h:253
#define MATCH_CUSTOM3_RS1_RS2
Definition: riscv_encoding.h:677
#define MASK_CUSTOM1_RD
Definition: riscv_encoding.h:656
#define MASK_C_ADD
Definition: riscv_encoding.h:630
#define MASK_AMOOR_D
Definition: riscv_encoding.h:382
#define MATCH_SLLIW
Definition: riscv_encoding.h:287
#define CSR_DCSR
Definition: riscv_encoding.h:746
#define MASK_C_SRAI
Definition: riscv_encoding.h:598
#define CSR_MHPMCOUNTER19H
Definition: riscv_encoding.h:865
#define MASK_AMOMAX_W
Definition: riscv_encoding.h:366
#define MATCH_FCVT_D_S
Definition: riscv_encoding.h:469
#define MATCH_FCVT_D_WU
Definition: riscv_encoding.h:521
#define MASK_FNMADD_S
Definition: riscv_encoding.h:544
#define CSR_MHPMCOUNTER25
Definition: riscv_encoding.h:773
#define MATCH_C_LDSP
Definition: riscv_encoding.h:569
#define CSR_SSCRATCH
Definition: riscv_encoding.h:723
#define CSR_MCYCLE
Definition: riscv_encoding.h:749
#define MASK_XORI
Definition: riscv_encoding.h:256
#define MASK_CUSTOM0_RS1
Definition: riscv_encoding.h:640
#define CSR_MHPMCOUNTER9H
Definition: riscv_encoding.h:855
#define MATCH_FMAX_S
Definition: riscv_encoding.h:445
#define CSR_MHPMEVENT24
Definition: riscv_encoding.h:803
#define CSR_MHPMCOUNTER4H
Definition: riscv_encoding.h:850
#define MATCH_SC_D
Definition: riscv_encoding.h:397
#define MATCH_C_JAL
Definition: riscv_encoding.h:589
#define MATCH_FCVT_S_W
Definition: riscv_encoding.h:509
#define CSR_HPMCOUNTER21
Definition: riscv_encoding.h:709
#define MASK_C_LWSP
Definition: riscv_encoding.h:624
#define MATCH_FMUL_S
Definition: riscv_encoding.h:433
#define CSR_HPMCOUNTER6
Definition: riscv_encoding.h:694
#define MASK_SRLI
Definition: riscv_encoding.h:258
#define CSR_SIE
Definition: riscv_encoding.h:721
#define MASK_FCVT_WU_D
Definition: riscv_encoding.h:500
#define MATCH_EBREAK
Definition: riscv_encoding.h:401
#define CSR_HPMCOUNTER4H
Definition: riscv_encoding.h:819
#define CSR_SPTBR
Definition: riscv_encoding.h:728
#define MASK_CUSTOM3_RS1_RS2
Definition: riscv_encoding.h:678
#define MATCH_C_FLW
Definition: riscv_encoding.h:579
#define MASK_FCVT_LU_D
Definition: riscv_encoding.h:504
#define MATCH_AMOMINU_W
Definition: riscv_encoding.h:367
#define MATCH_FDIV_D
Definition: riscv_encoding.h:455
#define MASK_CUSTOM3_RD_RS1
Definition: riscv_encoding.h:682
#define MASK_C_LD
Definition: riscv_encoding.h:564
#define MATCH_FNMSUB_D
Definition: riscv_encoding.h:549
#define CSR_MHPMCOUNTER27
Definition: riscv_encoding.h:775
#define MASK_OR
Definition: riscv_encoding.h:282
#define CSR_MHPMCOUNTER18H
Definition: riscv_encoding.h:864
#define MATCH_AMOMAXU_W
Definition: riscv_encoding.h:369
#define MASK_C_JAL
Definition: riscv_encoding.h:590
#define CSR_MHPMEVENT12
Definition: riscv_encoding.h:791
#define MASK_C_ADDW
Definition: riscv_encoding.h:612
#define CSR_MSTATUS
Definition: riscv_encoding.h:729
#define MASK_FNMSUB_D
Definition: riscv_encoding.h:550
#define CAUSE_MISALIGNED_STORE
Definition: riscv_encoding.h:907
#define MASK_CUSTOM0_RS1_RS2
Definition: riscv_encoding.h:642
#define MASK_SUBW
Definition: riscv_encoding.h:296
#define MASK_FSGNJ_D
Definition: riscv_encoding.h:458
#define MASK_FMAX_S
Definition: riscv_encoding.h:446
#define CSR_HPMCOUNTER31
Definition: riscv_encoding.h:719
#define MASK_AMOMIN_W
Definition: riscv_encoding.h:364
#define MATCH_C_BNEZ
Definition: riscv_encoding.h:617
#define CSR_HPMCOUNTER3
Definition: riscv_encoding.h:691
#define CSR_HPMCOUNTER21H
Definition: riscv_encoding.h:836
#define MATCH_ADDI
Definition: riscv_encoding.h:247
#define MASK_C_AND
Definition: riscv_encoding.h:608
#define MASK_SLTU
Definition: riscv_encoding.h:274
#define MATCH_SLLW
Definition: riscv_encoding.h:297
#define MATCH_CUSTOM2_RD
Definition: riscv_encoding.h:667
#define MATCH_C_SRAI
Definition: riscv_encoding.h:597
#define CAUSE_MISALIGNED_FETCH
Definition: riscv_encoding.h:901
#define MASK_AMOAND_D
Definition: riscv_encoding.h:384
#define MATCH_CSRRS
Definition: riscv_encoding.h:419
#define CSR_HPMCOUNTER30H
Definition: riscv_encoding.h:845
#define MATCH_CUSTOM0_RD
Definition: riscv_encoding.h:643
#define MATCH_AMOOR_W
Definition: riscv_encoding.h:359
#define MATCH_FLW
Definition: riscv_encoding.h:529
#define CSR_MHPMEVENT27
Definition: riscv_encoding.h:806
#define MASK_SRA
Definition: riscv_encoding.h:280
#define MATCH_C_FLWSP
Definition: riscv_encoding.h:625
#define CSR_TDATA1
Definition: riscv_encoding.h:743
#define CSR_MHPMCOUNTER11
Definition: riscv_encoding.h:759
#define MASK_FMV_S_X
Definition: riscv_encoding.h:518
#define CSR_MHPMCOUNTER29H
Definition: riscv_encoding.h:875
#define CSR_MHPMEVENT20
Definition: riscv_encoding.h:799
#define MASK_C_SLLI
Definition: riscv_encoding.h:620
#define MASK_LWU
Definition: riscv_encoding.h:316
#define CSR_HPMCOUNTER22H
Definition: riscv_encoding.h:837
#define CSR_HPMCOUNTER17
Definition: riscv_encoding.h:705
#define CSR_HPMCOUNTER17H
Definition: riscv_encoding.h:832
#define MASK_C_FSWSP
Definition: riscv_encoding.h:636
#define CSR_MHPMCOUNTER14
Definition: riscv_encoding.h:762
#define MASK_FCVT_LU_S
Definition: riscv_encoding.h:492
#define MASK_AMOADD_W
Definition: riscv_encoding.h:356
#define CSR_MARCHID
Definition: riscv_encoding.h:812
#define MATCH_CUSTOM2_RS1
Definition: riscv_encoding.h:663
#define MASK_C_ADDI16SP
Definition: riscv_encoding.h:556
#define MASK_FENCE_I
Definition: riscv_encoding.h:328
#define MASK_FMSUB_S
Definition: riscv_encoding.h:540
#define CAUSE_ILLEGAL_INSTRUCTION
Definition: riscv_encoding.h:903
#define CSR_MHPMCOUNTER13
Definition: riscv_encoding.h:761
#define MASK_C_SWSP
Definition: riscv_encoding.h:634
#define MASK_AMOADD_D
Definition: riscv_encoding.h:378
#define CSR_MCYCLEH
Definition: riscv_encoding.h:847
#define MATCH_XOR
Definition: riscv_encoding.h:275
#define MATCH_FCVT_D_L
Definition: riscv_encoding.h:523
#define MATCH_CUSTOM2_RS1_RS2
Definition: riscv_encoding.h:665
#define MATCH_MUL
Definition: riscv_encoding.h:329
#define MASK_FEQ_D
Definition: riscv_encoding.h:484
#define MASK_REMW
Definition: riscv_encoding.h:352
#define MATCH_C_SUBW
Definition: riscv_encoding.h:609
#define MATCH_C_LI
Definition: riscv_encoding.h:591
#define MASK_LH
Definition: riscv_encoding.h:306
#define MASK_DIVUW
Definition: riscv_encoding.h:350
#define MASK_AMOOR_W
Definition: riscv_encoding.h:360
#define MATCH_LB
Definition: riscv_encoding.h:303
#define CSR_HPMCOUNTER10H
Definition: riscv_encoding.h:825
#define MASK_FNMSUB_S
Definition: riscv_encoding.h:542
#define CSR_SIP
Definition: riscv_encoding.h:727
#define MATCH_CUSTOM1_RS1
Definition: riscv_encoding.h:651
#define MATCH_FSGNJN_S
Definition: riscv_encoding.h:439
#define MATCH_AMOMAX_D
Definition: riscv_encoding.h:387
#define MATCH_AUIPC
Definition: riscv_encoding.h:245
#define MATCH_FLD
Definition: riscv_encoding.h:531
#define MASK_FCVT_L_S
Definition: riscv_encoding.h:490
#define MASK_FSUB_D
Definition: riscv_encoding.h:452
#define MATCH_CUSTOM3_RD
Definition: riscv_encoding.h:679
#define MASK_CUSTOM2_RD_RS1_RS2
Definition: riscv_encoding.h:672
#define MASK_C_SUBW
Definition: riscv_encoding.h:610
#define MASK_BLT
Definition: riscv_encoding.h:232
#define CSR_MCAUSE
Definition: riscv_encoding.h:738
#define CSR_MUCOUNTEREN
Definition: riscv_encoding.h:780
#define MASK_REMU
Definition: riscv_encoding.h:344
#define MASK_WFI
Definition: riscv_encoding.h:416
#define MASK_FMSUB_D
Definition: riscv_encoding.h:548
#define MATCH_FMIN_D
Definition: riscv_encoding.h:463
#define MASK_C_SDSP
Definition: riscv_encoding.h:572
#define CSR_MHPMEVENT15
Definition: riscv_encoding.h:794
#define CSR_MHPMCOUNTER28
Definition: riscv_encoding.h:776
#define MASK_CUSTOM1_RS1_RS2
Definition: riscv_encoding.h:654
#define MATCH_ECALL
Definition: riscv_encoding.h:399
#define MATCH_C_FSWSP
Definition: riscv_encoding.h:635
#define CSR_MHPMCOUNTER26H
Definition: riscv_encoding.h:872
#define MATCH_SLL
Definition: riscv_encoding.h:269
#define MASK_FMIN_S
Definition: riscv_encoding.h:444
#define MASK_FMV_X_S
Definition: riscv_encoding.h:494
#define MATCH_C_MV
Definition: riscv_encoding.h:627
#define CSR_MHPMEVENT31
Definition: riscv_encoding.h:810
#define MATCH_FCLASS_D
Definition: riscv_encoding.h:507
#define MASK_SLLW
Definition: riscv_encoding.h:298
#define MASK_EBREAK
Definition: riscv_encoding.h:402
#define MASK_C_ADDI
Definition: riscv_encoding.h:588
#define CSR_MHPMCOUNTER23
Definition: riscv_encoding.h:771
#define MASK_C_BEQZ
Definition: riscv_encoding.h:616
#define MATCH_C_NOP
Definition: riscv_encoding.h:553
#define MATCH_WFI
Definition: riscv_encoding.h:415
#define MATCH_REMU
Definition: riscv_encoding.h:343
#define MASK_C_MV
Definition: riscv_encoding.h:628
#define MATCH_CUSTOM1
Definition: riscv_encoding.h:649
#define CSR_MHPMCOUNTER15
Definition: riscv_encoding.h:763
#define CSR_MHPMCOUNTER30
Definition: riscv_encoding.h:778
#define CSR_HPMCOUNTER28H
Definition: riscv_encoding.h:843
#define CSR_MHPMCOUNTER6H
Definition: riscv_encoding.h:852
#define CSR_MHPMEVENT6
Definition: riscv_encoding.h:785
#define MASK_CSRRSI
Definition: riscv_encoding.h:426
#define CSR_MHPMEVENT30
Definition: riscv_encoding.h:809
#define CSR_DSCRATCH
Definition: riscv_encoding.h:748
#define CSR_HPMCOUNTER6H
Definition: riscv_encoding.h:821
#define MASK_FEQ_S
Definition: riscv_encoding.h:478
#define CSR_MHPMCOUNTER27H
Definition: riscv_encoding.h:873
#define CSR_MEPC
Definition: riscv_encoding.h:737
#define MASK_FSW
Definition: riscv_encoding.h:534
#define CSR_SEPC
Definition: riscv_encoding.h:724
#define MASK_AMOSWAP_W
Definition: riscv_encoding.h:372
#define CSR_TDATA2
Definition: riscv_encoding.h:744
#define CSR_MHPMCOUNTER15H
Definition: riscv_encoding.h:861
#define MASK_REMUW
Definition: riscv_encoding.h:354
#define MATCH_ADD
Definition: riscv_encoding.h:265
#define CSR_MHPMCOUNTER21H
Definition: riscv_encoding.h:867
#define MATCH_SRLIW
Definition: riscv_encoding.h:289
#define MATCH_MULHU
Definition: riscv_encoding.h:335
#define CSR_MHPMCOUNTER25H
Definition: riscv_encoding.h:871
#define MASK_CUSTOM1_RD_RS1_RS2
Definition: riscv_encoding.h:660
#define MASK_SLL
Definition: riscv_encoding.h:270
#define MASK_CUSTOM2
Definition: riscv_encoding.h:662
#define MASK_FSQRT_D
Definition: riscv_encoding.h:472
#define CSR_FFLAGS
Definition: riscv_encoding.h:685
#define MASK_C_LI
Definition: riscv_encoding.h:592
#define MASK_LBU
Definition: riscv_encoding.h:312
#define CSR_MHPMCOUNTER4
Definition: riscv_encoding.h:752
#define MASK_C_LUI
Definition: riscv_encoding.h:594
#define MASK_MUL
Definition: riscv_encoding.h:330
#define CSR_MTVEC
Definition: riscv_encoding.h:734
#define CSR_MHPMCOUNTER23H
Definition: riscv_encoding.h:869
#define MASK_FCLASS_D
Definition: riscv_encoding.h:508
#define CSR_HPMCOUNTER18H
Definition: riscv_encoding.h:833
#define MATCH_C_J
Definition: riscv_encoding.h:613
#define MATCH_AMOMINU_D
Definition: riscv_encoding.h:389
#define CSR_MHPMCOUNTER3H
Definition: riscv_encoding.h:849
#define MASK_AND
Definition: riscv_encoding.h:284
#define MATCH_C_AND
Definition: riscv_encoding.h:607
#define MASK_LW
Definition: riscv_encoding.h:308
#define CSR_HPMCOUNTER9H
Definition: riscv_encoding.h:824
#define CSR_HPMCOUNTER3H
Definition: riscv_encoding.h:818
#define MASK_SRAI
Definition: riscv_encoding.h:260
#define MATCH_SRLW
Definition: riscv_encoding.h:299
#define MATCH_CUSTOM3
Definition: riscv_encoding.h:673
#define MASK_C_ADDIW
Definition: riscv_encoding.h:568
#define MASK_ADD
Definition: riscv_encoding.h:266
#define CSR_MHPMCOUNTER3
Definition: riscv_encoding.h:751
#define MATCH_MULH
Definition: riscv_encoding.h:331
#define MASK_LB
Definition: riscv_encoding.h:304
#define CSR_MSCRATCH
Definition: riscv_encoding.h:736
#define MATCH_CUSTOM2_RD_RS1_RS2
Definition: riscv_encoding.h:671
#define MATCH_BGE
Definition: riscv_encoding.h:233
#define MATCH_FCVT_LU_S
Definition: riscv_encoding.h:491
#define CSR_MIMPID
Definition: riscv_encoding.h:813
#define MASK_SRLIW
Definition: riscv_encoding.h:290
#define MASK_FSUB_S
Definition: riscv_encoding.h:432
#define MATCH_C_FSD
Definition: riscv_encoding.h:581