NMSIS-Core
Version 1.3.1
NMSIS-Core support for Nuclei processor-based devices
|
NMSIS Core CSR Encodings. More...
Modules | |
Core CSR Registers | |
NMSIS Core CSR Register Definitions. | |
Macros | |
#define | MSTATUS_UIE 0x00000001 |
#define | MSTATUS_SIE 0x00000002 |
#define | MSTATUS_HIE 0x00000004 |
#define | MSTATUS_MIE 0x00000008 |
#define | MSTATUS_UPIE 0x00000010 |
#define | MSTATUS_SPIE 0x00000020 |
#define | MSTATUS_UBE 0x00000040 |
#define | MSTATUS_MPIE 0x00000080 |
#define | MSTATUS_SPP 0x00000100 |
#define | MSTATUS_VS 0x00000600 |
#define | MSTATUS_MPP 0x00001800 |
#define | MSTATUS_FS 0x00006000 |
#define | MSTATUS_XS 0x00018000 |
#define | MSTATUS_MPRV 0x00020000 |
#define | MSTATUS_SUM 0x00040000 |
#define | MSTATUS_MXR 0x00080000 |
#define | MSTATUS_TVM 0x00100000 |
#define | MSTATUS_TW 0x00200000 |
#define | MSTATUS_TSR 0x00400000 |
#define | MSTATUS32_SD 0x80000000 |
#define | MSTATUS_UXL 0x0000000300000000 |
#define | MSTATUS_SXL 0x0000000C00000000 |
#define | MSTATUS_SBE 0x0000001000000000 |
#define | MSTATUS_MBE 0x0000002000000000 |
#define | MSTATUS_GVA 0x0000004000000000 |
#define | MSTATUS_MPV 0x0000008000000000 |
#define | MSTATUS64_SD 0x8000000000000000 |
#define | MSTATUS_FS_INITIAL 0x00002000 |
#define | MSTATUS_FS_CLEAN 0x00004000 |
#define | MSTATUS_FS_DIRTY 0x00006000 |
#define | MSTATUS_VS_INITIAL 0x00000200 |
#define | MSTATUS_VS_CLEAN 0x00000400 |
#define | MSTATUS_VS_DIRTY 0x00000600 |
#define | MSTATUSH_SBE 0x00000010 |
#define | MSTATUSH_MBE 0x00000020 |
#define | MSTATUSH_GVA 0x00000040 |
#define | MSTATUSH_MPV 0x00000080 |
#define | SSTATUS_UIE 0x00000001 |
#define | SSTATUS_SIE 0x00000002 |
#define | SSTATUS_UPIE 0x00000010 |
#define | SSTATUS_SPIE 0x00000020 |
#define | SSTATUS_UBE 0x00000040 |
#define | SSTATUS_SPP 0x00000100 |
#define | SSTATUS_VS 0x00000600 |
#define | SSTATUS_FS 0x00006000 |
#define | SSTATUS_XS 0x00018000 |
#define | SSTATUS_SUM 0x00040000 |
#define | SSTATUS_MXR 0x00080000 |
#define | SSTATUS32_SD 0x80000000 |
#define | SSTATUS_UXL 0x0000000300000000 |
#define | SSTATUS64_SD 0x8000000000000000 |
#define | USTATUS_UIE 0x00000001 |
#define | USTATUS_UPIE 0x00000010 |
#define | DCSR_XDEBUGVER (3U<<30) |
#define | DCSR_NDRESET (1<<29) |
#define | DCSR_FULLRESET (1<<28) |
#define | DCSR_EBREAKM (1<<15) |
#define | DCSR_EBREAKH (1<<14) |
#define | DCSR_EBREAKS (1<<13) |
#define | DCSR_EBREAKU (1<<12) |
#define | DCSR_STOPCYCLE (1<<10) |
#define | DCSR_STOPTIME (1<<9) |
#define | DCSR_CAUSE (7<<6) |
#define | DCSR_DEBUGINT (1<<5) |
#define | DCSR_HALT (1<<3) |
#define | DCSR_STEP (1<<2) |
#define | DCSR_PRV (3<<0) |
#define | DCSR_CAUSE_NONE 0 |
#define | DCSR_CAUSE_SWBP 1 |
#define | DCSR_CAUSE_HWBP 2 |
#define | DCSR_CAUSE_DEBUGINT 3 |
#define | DCSR_CAUSE_STEP 4 |
#define | DCSR_CAUSE_HALT 5 |
#define | MCONTROL_TYPE(xlen) (0xfULL<<((xlen)-4)) |
#define | MCONTROL_DMODE(xlen) (1ULL<<((xlen)-5)) |
#define | MCONTROL_MASKMAX(xlen) (0x3fULL<<((xlen)-11)) |
#define | MCONTROL_SELECT (1<<19) |
#define | MCONTROL_TIMING (1<<18) |
#define | MCONTROL_ACTION (0x3f<<12) |
#define | MCONTROL_CHAIN (1<<11) |
#define | MCONTROL_MATCH (0xf<<7) |
#define | MCONTROL_M (1<<6) |
#define | MCONTROL_H (1<<5) |
#define | MCONTROL_S (1<<4) |
#define | MCONTROL_U (1<<3) |
#define | MCONTROL_EXECUTE (1<<2) |
#define | MCONTROL_STORE (1<<1) |
#define | MCONTROL_LOAD (1<<0) |
#define | MCONTROL_TYPE_NONE 0 |
#define | MCONTROL_TYPE_MATCH 2 |
#define | MCONTROL_ACTION_DEBUG_EXCEPTION 0 |
#define | MCONTROL_ACTION_DEBUG_MODE 1 |
#define | MCONTROL_ACTION_TRACE_START 2 |
#define | MCONTROL_ACTION_TRACE_STOP 3 |
#define | MCONTROL_ACTION_TRACE_EMIT 4 |
#define | MCONTROL_MATCH_EQUAL 0 |
#define | MCONTROL_MATCH_NAPOT 1 |
#define | MCONTROL_MATCH_GE 2 |
#define | MCONTROL_MATCH_LT 3 |
#define | MCONTROL_MATCH_MASK_LOW 4 |
#define | MCONTROL_MATCH_MASK_HIGH 5 |
#define | MIP_SSIP (1 << IRQ_S_SOFT) |
#define | MIP_HSIP (1 << IRQ_H_SOFT) |
#define | MIP_MSIP (1 << IRQ_M_SOFT) |
#define | MIP_STIP (1 << IRQ_S_TIMER) |
#define | MIP_HTIP (1 << IRQ_H_TIMER) |
#define | MIP_MTIP (1 << IRQ_M_TIMER) |
#define | MIP_SEIP (1 << IRQ_S_EXT) |
#define | MIP_HEIP (1 << IRQ_H_EXT) |
#define | MIP_MEIP (1 << IRQ_M_EXT) |
#define | MIE_SSIE MIP_SSIP |
#define | MIE_HSIE MIP_HSIP |
#define | MIE_MSIE MIP_MSIP |
#define | MIE_STIE MIP_STIP |
#define | MIE_HTIE MIP_HTIP |
#define | MIE_MTIE MIP_MTIP |
#define | MIE_SEIE MIP_SEIP |
#define | MIE_HEIE MIP_HEIP |
#define | MIE_MEIE MIP_MEIP |
#define | SIP_SSIP MIP_SSIP |
#define | SIP_SSIP MIP_SSIP |
#define | SIP_STIP MIP_STIP |
#define | SIP_STIP MIP_STIP |
#define | SIP_SEIP MIP_SEIP |
#define | SIE_SSIE MIP_SSIP |
#define | SIE_STIE MIP_STIP |
#define | SIE_SEIE MIP_SEIP |
#define | MCAUSE_INTR (1ULL << (__riscv_xlen - 1)) |
#define | MCAUSE_CAUSE 0x00000FFFUL |
#define | SCAUSE_INTR MCAUSE_INTR |
#define | SCAUSE_CAUSE 0x000003FFUL |
#define | MENVCFG_CBIE_EN (0x11 << 4) |
#define | MENVCFG_CBIE_FLUSH (0x01 << 4) |
#define | MENVCFG_CBIE_INVAL (0x11 << 4) |
#define | MENVCFG_CBCFE (0x1 << 6) |
#define | MENVCFG_CBZE (0x1 << 7) |
#define | SENVCFG_CBIE_EN (0x11 << 4) |
#define | SENVCFG_CBIE_FLUSH (0x01 << 4) |
#define | SENVCFG_CBIE_INVAL (0x11 << 4) |
#define | SENVCFG_CBCFE (0x1 << 6) |
#define | SENVCFG_CBZE (0x1 << 7) |
#define | UCODE_OV (0x1) |
#define | CSR_MCACHE_CTL_IE 0x00000001 |
#define | CSR_MCACHE_CTL_DE 0x00010000 |
#define | WFE_WFE (0x1) |
#define | TXEVT_TXEVT (0x1) |
#define | SLEEPVALUE_SLEEPVALUE (0x1) |
#define | MCOUNTINHIBIT_IR (1<<2) |
#define | MCOUNTINHIBIT_CY (1<<0) |
#define | MILM_CTL_ILM_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
#define | MILM_CTL_ILM_ECC_CHK_EN (1<<4) |
#define | MILM_CTL_ILM_RWECC (1<<3) |
#define | MILM_CTL_ILM_ECC_INJ_EN (1<<3) |
#define | MILM_CTL_ILM_ECC_EXCP_EN (1<<2) |
#define | MILM_CTL_ILM_ECC_EN (1<<1) |
#define | MILM_CTL_ILM_EN (1<<0) |
#define | MDLM_CTL_DLM_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
#define | MDLM_CTL_DLM_ECC_CHK_EN (1<<4) |
#define | MDLM_CTL_DLM_RWECC (1<<3) |
#define | MDLM_CTL_DLM_ECC_INJ_EN (1<<3) |
#define | MDLM_CTL_DLM_ECC_EXCP_EN (1<<2) |
#define | MDLM_CTL_DLM_ECC_EN (1<<1) |
#define | MDLM_CTL_DLM_EN (1<<0) |
#define | MSUBM_PTYP (0x3<<8) |
#define | MSUBM_TYP (0x3<<6) |
#define | MDCAUSE_MDCAUSE (0x7) |
#define | MMISC_CTL_LDSPEC_ENABLE (1<<12) |
#define | MMISC_CTL_SIJUMP_ENABLE (1<<11) |
#define | MMISC_CTL_IMRETURN_ENABLE (1<<10) |
#define | MMISC_CTL_NMI_CAUSE_FFF (1<<9) |
#define | MMISC_CTL_CODE_BUS_ERR (1<<8) |
#define | MMISC_CTL_MISALIGN (1<<6) |
#define | MMISC_CTL_ZC (1<<7) |
#define | MMISC_CTL_BPU (1<<3) |
#define | MCACHE_CTL_IC_EN (1<<0) |
#define | MCACHE_CTL_IC_SCPD_MOD (1<<1) |
#define | MCACHE_CTL_IC_ECC_EN (1<<2) |
#define | MCACHE_CTL_IC_ECC_EXCP_EN (1<<3) |
#define | MCACHE_CTL_IC_TRAM_ECC_INJ_EN (1<<4) |
#define | MCACHE_CTL_IC_RWTECC (1<<4) |
#define | MCACHE_CTL_IC_RWDECC (1<<5) |
#define | MCACHE_CTL_IC_DRAM_ECC_INJ_EN (1<<5) |
#define | MCACHE_CTL_IC_PF_EN (1<<6) |
#define | MCACHE_CTL_IC_CANCEL_EN (1<<7) |
#define | MCACHE_CTL_IC_ECC_CHK_EN (1<<8) |
#define | MCACHE_CTL_DC_EN (1<<16) |
#define | MCACHE_CTL_DC_ECC_EN (1<<17) |
#define | MCACHE_CTL_DC_ECC_EXCP_EN (1<<18) |
#define | MCACHE_CTL_DC_TRAM_ECC_INJ_EN (1<<19) |
#define | MCACHE_CTL_DC_RWTECC (1<<19) |
#define | MCACHE_CTL_DC_RWDECC (1<<20) |
#define | MCACHE_CTL_DC_DRAM_ECC_INJ_EN (1<<20) |
#define | MCACHE_CTL_DC_ECC_CHK_EN (1<<21) |
#define | MTVT2_MTVT2EN (1<<0) |
#define | MTVT2_COMMON_CODE_ENTRY (((1ULL<<((__riscv_xlen)-2))-1)<<2) |
#define | MCFG_INFO_TEE (1<<0) |
#define | MCFG_INFO_ECC (1<<1) |
#define | MCFG_INFO_CLIC (1<<2) |
#define | MCFG_INFO_PLIC (1<<3) |
#define | MCFG_INFO_FIO (1<<4) |
#define | MCFG_INFO_PPI (1<<5) |
#define | MCFG_INFO_NICE (1<<6) |
#define | MCFG_INFO_ILM (1<<7) |
#define | MCFG_INFO_DLM (1<<8) |
#define | MCFG_INFO_ICACHE (1<<9) |
#define | MCFG_INFO_DCACHE (1<<10) |
#define | MCFG_INFO_SMP (1<<11) |
#define | MCFG_INFO_DSP_N1 (1<<12) |
#define | MCFG_INFO_DSP_N2 (1<<13) |
#define | MCFG_INFO_DSP_N3 (1<<14) |
#define | MCFG_INFO_IREGION_EXIST (1<<16) |
#define | MCFG_INFO_VP (0x3<<17) |
#define | MICFG_IC_SET (0xF<<0) |
#define | MICFG_IC_WAY (0x7<<4) |
#define | MICFG_IC_LSIZE (0x7<<7) |
#define | MICFG_IC_ECC (0x1<<10) |
#define | MICFG_ILM_SIZE (0x1F<<16) |
#define | MICFG_ILM_XONLY (0x1<<21) |
#define | MICFG_ILM_ECC (0x1<<22) |
#define | MDCFG_DC_SET (0xF<<0) |
#define | MDCFG_DC_WAY (0x7<<4) |
#define | MDCFG_DC_LSIZE (0x7<<7) |
#define | MDCFG_DC_ECC (0x1<<10) |
#define | MDCFG_DLM_SIZE (0x1F<<16) |
#define | MDCFG_DLM_ECC (0x1<<21) |
#define | MIRGB_INFO_IRG_BASE_ADDR_BOFS (10) |
#define | MIRGB_INFO_IREGION_SIZE_BOFS (1) |
#define | MPPICFG_INFO_PPI_SIZE (0x1F<<1) |
#define | MPPICFG_INFO_PPI_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
#define | MFIOCFG_INFO_FIO_SIZE (0x1F<<1) |
#define | MFIOCFG_INFO_FIO_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
#define | MECC_LOCK_ECC_LOCK (0x1) |
#define | MECC_CODE_CODE (0x1FF) |
#define | MECC_CODE_RAMID (0x1F<<16) |
#define | MECC_CODE_SRAMID (0x1F<<24) |
#define | CCM_SUEN_SUEN (0x1<<0) |
#define | CCM_DATA_DATA (0x7<<0) |
#define | CCM_COMMAND_COMMAND (0x1F<<0) |
#define | IREGION_IINFO_OFS (0x0) |
#define | IREGION_DEBUG_OFS (0x10000) |
#define | IREGION_ECLIC_OFS (0x20000) |
#define | IREGION_TIMER_OFS (0x30000) |
#define | IREGION_SMP_OFS (0x40000) |
#define | IREGION_IDU_OFS (0x50000) |
#define | IREGION_PL2_OFS (0x60000) |
#define | IREGION_DPREFETCH_OFS (0x70000) |
#define | IREGION_PLIC_OFS (0x4000000) |
#define | MSTACK_CTRL_MODE (0x1<<2) |
#define | MSTACK_CTRL_UDF_EN (0x1<<1) |
#define | MSTACK_CTRL_OVF_TRACK_EN (0x1) |
#define | PRV_U 0 |
#define | PRV_S 1 |
#define | PRV_H 2 |
#define | PRV_M 3 |
#define | VM_MBARE 0 |
#define | VM_MBB 1 |
#define | VM_MBBID 2 |
#define | VM_SV32 8 |
#define | VM_SV39 9 |
#define | VM_SV48 10 |
#define | SATP32_MODE 0x80000000 |
#define | SATP32_ASID 0x7FC00000 |
#define | SATP32_PPN 0x003FFFFF |
#define | SATP64_MODE 0xF000000000000000 |
#define | SATP64_ASID 0x0FFFF00000000000 |
#define | SATP64_PPN 0x00000FFFFFFFFFFF |
#define | SATP_MODE_OFF 0 |
#define | SATP_MODE_SV32 1 |
#define | SATP_MODE_SV39 8 |
#define | SATP_MODE_SV48 9 |
#define | SATP_MODE_SV57 10 |
#define | SATP_MODE_SV64 11 |
#define | IRQ_S_SOFT 1 |
#define | IRQ_H_SOFT 2 |
#define | IRQ_M_SOFT 3 |
#define | IRQ_S_TIMER 5 |
#define | IRQ_H_TIMER 6 |
#define | IRQ_M_TIMER 7 |
#define | IRQ_S_EXT 9 |
#define | IRQ_H_EXT 10 |
#define | IRQ_M_EXT 11 |
#define | IRQ_COP 12 |
#define | IRQ_HOST 13 |
#define | FRM_RNDMODE_RNE 0x0 |
FPU Round to Nearest, ties to Even. More... | |
#define | FRM_RNDMODE_RTZ 0x1 |
FPU Round Towards Zero. More... | |
#define | FRM_RNDMODE_RDN 0x2 |
FPU Round Down (towards -inf) More... | |
#define | FRM_RNDMODE_RUP 0x3 |
FPU Round Up (towards +inf) More... | |
#define | FRM_RNDMODE_RMM 0x4 |
FPU Round to nearest, ties to Max Magnitude. More... | |
#define | FRM_RNDMODE_DYN 0x7 |
In instruction's rm, selects dynamic rounding mode. More... | |
#define | FFLAGS_AE_NX (1<<0) |
FPU Inexact. More... | |
#define | FFLAGS_AE_UF (1<<1) |
FPU Underflow. More... | |
#define | FFLAGS_AE_OF (1<<2) |
FPU Overflow. More... | |
#define | FFLAGS_AE_DZ (1<<3) |
FPU Divide by Zero. More... | |
#define | FFLAGS_AE_NV (1<<4) |
FPU Invalid Operation. More... | |
#define | FREG(idx) f##idx |
Floating Point Register f0-f31, eg. More... | |
#define | PMP_R 0x01 |
#define | PMP_W 0x02 |
#define | PMP_X 0x04 |
#define | PMP_A 0x18 |
#define | PMP_A_TOR 0x08 |
#define | PMP_A_NA4 0x10 |
#define | PMP_A_NAPOT 0x18 |
#define | PMP_L 0x80 |
#define | PMP_SHIFT 2 |
#define | PMP_COUNT 16 |
#define | SPMP_R PMP_R |
#define | SPMP_W PMP_W |
#define | SPMP_X PMP_X |
#define | SPMP_A PMP_A |
#define | SPMP_A_TOR PMP_A_TOR |
#define | SPMP_A_NA4 PMP_A_NA4 |
#define | SPMP_A_NAPOT PMP_A_NAPOT |
#define | SPMP_U 0x40 |
#define | SPMP_L PMP_L |
#define | SPMP_SHIFT PMP_SHIFT |
#define | SPMP_COUNT 16 |
#define | SMPU_R SPMP_R |
#define | SMPU_W SPMP_W |
#define | SMPU_X SPMP_X |
#define | SMPU_A SPMP_A |
#define | SMPU_A_TOR SPMP_A_TOR |
#define | SMPU_A_NA4 SPMP_A_NA4 |
#define | SMPU_A_NAPOT SPMP_A_NAPOT |
#define | SMPU_S 0x80 |
#define | SMPU_SHIFT PMP_SHIFT |
#define | PTE_V 0x001 |
#define | PTE_R 0x002 |
#define | PTE_W 0x004 |
#define | PTE_X 0x008 |
#define | PTE_U 0x010 |
#define | PTE_G 0x020 |
#define | PTE_A 0x040 |
#define | PTE_D 0x080 |
#define | PTE_SOFT 0x300 |
#define | PTE_PPN_SHIFT 10 |
#define | PTE_TABLE(PTE) (((PTE) & (PTE_V | PTE_R | PTE_W | PTE_X)) == PTE_V) |
#define | CAUSE_MISALIGNED_FETCH 0x0 |
End of Doxygen Group NMSIS_Core_CSR_Registers. More... | |
#define | CAUSE_FAULT_FETCH 0x1 |
#define | CAUSE_ILLEGAL_INSTRUCTION 0x2 |
#define | CAUSE_BREAKPOINT 0x3 |
#define | CAUSE_MISALIGNED_LOAD 0x4 |
#define | CAUSE_FAULT_LOAD 0x5 |
#define | CAUSE_MISALIGNED_STORE 0x6 |
#define | CAUSE_FAULT_STORE 0x7 |
#define | CAUSE_USER_ECALL 0x8 |
#define | CAUSE_SUPERVISOR_ECALL 0x9 |
#define | CAUSE_HYPERVISOR_ECALL 0xa |
#define | CAUSE_MACHINE_ECALL 0xb |
#define | CAUSE_FETCH_PAGE_FAULT 0xc |
#define | CAUSE_LOAD_PAGE_FAULT 0xd |
#define | CAUSE_STORE_PAGE_FAULT 0xf |
#define | MISALIGNED_FETCH (1 << CAUSE_MISALIGNED_FETCH) |
#define | FAULT_FETCH (1 << CAUSE_FAULT_FETCH) |
#define | ILLEGAL_INSTRUCTION (1 << CAUSE_ILLEGAL_INSTRUCTION) |
#define | BREAKPOINT (1 << CAUSE_BREAKPOINT) |
#define | MISALIGNED_LOAD (1 << CAUSE_MISALIGNED_LOAD) |
#define | FAULT_LOAD (1 << CAUSE_FAULT_LOAD) |
#define | MISALIGNED_STORE (1 << CAUSE_MISALIGNED_STORE) |
#define | FAULT_STORE (1 << CAUSE_FAULT_STORE) |
#define | USER_ECALL (1 << CAUSE_USER_ECALL) |
#define | FETCH_PAGE_FAULT (1 << CAUSE_FETCH_PAGE_FAULT) |
#define | LOAD_PAGE_FAULT (1 << CAUSE_LOAD_PAGE_FAULT) |
#define | STORE_PAGE_FAULT (1 << CAUSE_STORE_PAGE_FAULT) |
#define | DCAUSE_FAULT_FETCH_PMP 0x1 |
#define | DCAUSE_FAULT_FETCH_INST 0x2 |
#define | DCAUSE_FAULT_LOAD_PMP 0x1 |
#define | DCAUSE_FAULT_LOAD_INST 0x2 |
#define | DCAUSE_FAULT_LOAD_NICE 0x3 |
#define | DCAUSE_FAULT_STORE_PMP 0x1 |
#define | DCAUSE_FAULT_STORE_INST 0x2 |
NMSIS Core CSR Encodings.
The following macros are used for CSR encodings
#define BREAKPOINT (1 << CAUSE_BREAKPOINT) |
Definition at line 1078 of file riscv_encoding.h.
#define CAUSE_BREAKPOINT 0x3 |
Definition at line 1061 of file riscv_encoding.h.
#define CAUSE_FAULT_FETCH 0x1 |
Definition at line 1059 of file riscv_encoding.h.
#define CAUSE_FAULT_LOAD 0x5 |
Definition at line 1063 of file riscv_encoding.h.
#define CAUSE_FAULT_STORE 0x7 |
Definition at line 1065 of file riscv_encoding.h.
#define CAUSE_FETCH_PAGE_FAULT 0xc |
Definition at line 1070 of file riscv_encoding.h.
#define CAUSE_HYPERVISOR_ECALL 0xa |
Definition at line 1068 of file riscv_encoding.h.
#define CAUSE_ILLEGAL_INSTRUCTION 0x2 |
Definition at line 1060 of file riscv_encoding.h.
#define CAUSE_LOAD_PAGE_FAULT 0xd |
Definition at line 1071 of file riscv_encoding.h.
#define CAUSE_MACHINE_ECALL 0xb |
Definition at line 1069 of file riscv_encoding.h.
#define CAUSE_MISALIGNED_FETCH 0x0 |
End of Doxygen Group NMSIS_Core_CSR_Registers.
Definition at line 1058 of file riscv_encoding.h.
#define CAUSE_MISALIGNED_LOAD 0x4 |
Definition at line 1062 of file riscv_encoding.h.
#define CAUSE_MISALIGNED_STORE 0x6 |
Definition at line 1064 of file riscv_encoding.h.
#define CAUSE_STORE_PAGE_FAULT 0xf |
Definition at line 1072 of file riscv_encoding.h.
#define CAUSE_SUPERVISOR_ECALL 0x9 |
Definition at line 1067 of file riscv_encoding.h.
#define CAUSE_USER_ECALL 0x8 |
Definition at line 1066 of file riscv_encoding.h.
#define CCM_COMMAND_COMMAND (0x1F<<0) |
Definition at line 313 of file riscv_encoding.h.
#define CCM_DATA_DATA (0x7<<0) |
Definition at line 312 of file riscv_encoding.h.
#define CCM_SUEN_SUEN (0x1<<0) |
Definition at line 311 of file riscv_encoding.h.
#define CSR_MCACHE_CTL_DE 0x00010000 |
Definition at line 201 of file riscv_encoding.h.
#define CSR_MCACHE_CTL_IE 0x00000001 |
Definition at line 200 of file riscv_encoding.h.
#define DCAUSE_FAULT_FETCH_INST 0x2 |
Definition at line 1090 of file riscv_encoding.h.
#define DCAUSE_FAULT_FETCH_PMP 0x1 |
Definition at line 1089 of file riscv_encoding.h.
#define DCAUSE_FAULT_LOAD_INST 0x2 |
Definition at line 1093 of file riscv_encoding.h.
#define DCAUSE_FAULT_LOAD_NICE 0x3 |
Definition at line 1094 of file riscv_encoding.h.
#define DCAUSE_FAULT_LOAD_PMP 0x1 |
Definition at line 1092 of file riscv_encoding.h.
#define DCAUSE_FAULT_STORE_INST 0x2 |
Definition at line 1097 of file riscv_encoding.h.
#define DCAUSE_FAULT_STORE_PMP 0x1 |
Definition at line 1096 of file riscv_encoding.h.
#define DCSR_CAUSE (7<<6) |
Definition at line 105 of file riscv_encoding.h.
#define DCSR_CAUSE_DEBUGINT 3 |
Definition at line 114 of file riscv_encoding.h.
#define DCSR_CAUSE_HALT 5 |
Definition at line 116 of file riscv_encoding.h.
#define DCSR_CAUSE_HWBP 2 |
Definition at line 113 of file riscv_encoding.h.
#define DCSR_CAUSE_NONE 0 |
Definition at line 111 of file riscv_encoding.h.
#define DCSR_CAUSE_STEP 4 |
Definition at line 115 of file riscv_encoding.h.
#define DCSR_CAUSE_SWBP 1 |
Definition at line 112 of file riscv_encoding.h.
#define DCSR_DEBUGINT (1<<5) |
Definition at line 106 of file riscv_encoding.h.
#define DCSR_EBREAKH (1<<14) |
Definition at line 100 of file riscv_encoding.h.
#define DCSR_EBREAKM (1<<15) |
Definition at line 99 of file riscv_encoding.h.
#define DCSR_EBREAKS (1<<13) |
Definition at line 101 of file riscv_encoding.h.
#define DCSR_EBREAKU (1<<12) |
Definition at line 102 of file riscv_encoding.h.
#define DCSR_FULLRESET (1<<28) |
Definition at line 98 of file riscv_encoding.h.
#define DCSR_HALT (1<<3) |
Definition at line 107 of file riscv_encoding.h.
#define DCSR_NDRESET (1<<29) |
Definition at line 97 of file riscv_encoding.h.
#define DCSR_PRV (3<<0) |
Definition at line 109 of file riscv_encoding.h.
#define DCSR_STEP (1<<2) |
Definition at line 108 of file riscv_encoding.h.
#define DCSR_STOPCYCLE (1<<10) |
Definition at line 103 of file riscv_encoding.h.
#define DCSR_STOPTIME (1<<9) |
Definition at line 104 of file riscv_encoding.h.
#define DCSR_XDEBUGVER (3U<<30) |
Definition at line 96 of file riscv_encoding.h.
#define FAULT_FETCH (1 << CAUSE_FAULT_FETCH) |
Definition at line 1076 of file riscv_encoding.h.
#define FAULT_LOAD (1 << CAUSE_FAULT_LOAD) |
Definition at line 1080 of file riscv_encoding.h.
#define FAULT_STORE (1 << CAUSE_FAULT_STORE) |
Definition at line 1082 of file riscv_encoding.h.
#define FETCH_PAGE_FAULT (1 << CAUSE_FETCH_PAGE_FAULT) |
Definition at line 1084 of file riscv_encoding.h.
#define FFLAGS_AE_DZ (1<<3) |
FPU Divide by Zero.
Definition at line 397 of file riscv_encoding.h.
#define FFLAGS_AE_NV (1<<4) |
FPU Invalid Operation.
Definition at line 399 of file riscv_encoding.h.
#define FFLAGS_AE_NX (1<<0) |
FPU Inexact.
Definition at line 391 of file riscv_encoding.h.
#define FFLAGS_AE_OF (1<<2) |
FPU Overflow.
Definition at line 395 of file riscv_encoding.h.
#define FFLAGS_AE_UF (1<<1) |
FPU Underflow.
Definition at line 393 of file riscv_encoding.h.
#define FREG | ( | idx | ) | f##idx |
#define FRM_RNDMODE_DYN 0x7 |
In instruction's rm, selects dynamic rounding mode.
In Rounding Mode register, Invalid
Definition at line 387 of file riscv_encoding.h.
#define FRM_RNDMODE_RDN 0x2 |
FPU Round Down (towards -inf)
Definition at line 379 of file riscv_encoding.h.
#define FRM_RNDMODE_RMM 0x4 |
FPU Round to nearest, ties to Max Magnitude.
Definition at line 383 of file riscv_encoding.h.
#define FRM_RNDMODE_RNE 0x0 |
FPU Round to Nearest, ties to Even.
Definition at line 375 of file riscv_encoding.h.
#define FRM_RNDMODE_RTZ 0x1 |
FPU Round Towards Zero.
Definition at line 377 of file riscv_encoding.h.
#define FRM_RNDMODE_RUP 0x3 |
FPU Round Up (towards +inf)
Definition at line 381 of file riscv_encoding.h.
#define ILLEGAL_INSTRUCTION (1 << CAUSE_ILLEGAL_INSTRUCTION) |
Definition at line 1077 of file riscv_encoding.h.
#define IREGION_DEBUG_OFS (0x10000) |
Definition at line 317 of file riscv_encoding.h.
#define IREGION_DPREFETCH_OFS (0x70000) |
Definition at line 323 of file riscv_encoding.h.
#define IREGION_ECLIC_OFS (0x20000) |
Definition at line 318 of file riscv_encoding.h.
#define IREGION_IDU_OFS (0x50000) |
Definition at line 321 of file riscv_encoding.h.
#define IREGION_IINFO_OFS (0x0) |
Definition at line 316 of file riscv_encoding.h.
#define IREGION_PL2_OFS (0x60000) |
Definition at line 322 of file riscv_encoding.h.
#define IREGION_PLIC_OFS (0x4000000) |
Definition at line 324 of file riscv_encoding.h.
#define IREGION_SMP_OFS (0x40000) |
Definition at line 320 of file riscv_encoding.h.
#define IREGION_TIMER_OFS (0x30000) |
Definition at line 319 of file riscv_encoding.h.
#define IRQ_COP 12 |
Definition at line 369 of file riscv_encoding.h.
#define IRQ_H_EXT 10 |
Definition at line 367 of file riscv_encoding.h.
#define IRQ_H_SOFT 2 |
Definition at line 361 of file riscv_encoding.h.
#define IRQ_H_TIMER 6 |
Definition at line 364 of file riscv_encoding.h.
#define IRQ_HOST 13 |
Definition at line 370 of file riscv_encoding.h.
#define IRQ_M_EXT 11 |
Definition at line 368 of file riscv_encoding.h.
#define IRQ_M_SOFT 3 |
Definition at line 362 of file riscv_encoding.h.
#define IRQ_M_TIMER 7 |
Definition at line 365 of file riscv_encoding.h.
#define IRQ_S_EXT 9 |
Definition at line 366 of file riscv_encoding.h.
#define IRQ_S_SOFT 1 |
Definition at line 360 of file riscv_encoding.h.
#define IRQ_S_TIMER 5 |
Definition at line 363 of file riscv_encoding.h.
#define LOAD_PAGE_FAULT (1 << CAUSE_LOAD_PAGE_FAULT) |
Definition at line 1085 of file riscv_encoding.h.
#define MCACHE_CTL_DC_DRAM_ECC_INJ_EN (1<<20) |
Definition at line 257 of file riscv_encoding.h.
#define MCACHE_CTL_DC_ECC_CHK_EN (1<<21) |
Definition at line 258 of file riscv_encoding.h.
#define MCACHE_CTL_DC_ECC_EN (1<<17) |
Definition at line 252 of file riscv_encoding.h.
#define MCACHE_CTL_DC_ECC_EXCP_EN (1<<18) |
Definition at line 253 of file riscv_encoding.h.
#define MCACHE_CTL_DC_EN (1<<16) |
Definition at line 251 of file riscv_encoding.h.
#define MCACHE_CTL_DC_RWDECC (1<<20) |
Definition at line 256 of file riscv_encoding.h.
#define MCACHE_CTL_DC_RWTECC (1<<19) |
Definition at line 255 of file riscv_encoding.h.
#define MCACHE_CTL_DC_TRAM_ECC_INJ_EN (1<<19) |
Definition at line 254 of file riscv_encoding.h.
#define MCACHE_CTL_IC_CANCEL_EN (1<<7) |
Definition at line 249 of file riscv_encoding.h.
#define MCACHE_CTL_IC_DRAM_ECC_INJ_EN (1<<5) |
Definition at line 247 of file riscv_encoding.h.
#define MCACHE_CTL_IC_ECC_CHK_EN (1<<8) |
Definition at line 250 of file riscv_encoding.h.
#define MCACHE_CTL_IC_ECC_EN (1<<2) |
Definition at line 242 of file riscv_encoding.h.
#define MCACHE_CTL_IC_ECC_EXCP_EN (1<<3) |
Definition at line 243 of file riscv_encoding.h.
#define MCACHE_CTL_IC_EN (1<<0) |
Definition at line 240 of file riscv_encoding.h.
#define MCACHE_CTL_IC_PF_EN (1<<6) |
Definition at line 248 of file riscv_encoding.h.
#define MCACHE_CTL_IC_RWDECC (1<<5) |
Definition at line 246 of file riscv_encoding.h.
#define MCACHE_CTL_IC_RWTECC (1<<4) |
Definition at line 245 of file riscv_encoding.h.
#define MCACHE_CTL_IC_SCPD_MOD (1<<1) |
Definition at line 241 of file riscv_encoding.h.
#define MCACHE_CTL_IC_TRAM_ECC_INJ_EN (1<<4) |
Definition at line 244 of file riscv_encoding.h.
#define MCAUSE_CAUSE 0x00000FFFUL |
Definition at line 180 of file riscv_encoding.h.
#define MCAUSE_INTR (1ULL << (__riscv_xlen - 1)) |
Definition at line 179 of file riscv_encoding.h.
#define MCFG_INFO_CLIC (1<<2) |
Definition at line 265 of file riscv_encoding.h.
#define MCFG_INFO_DCACHE (1<<10) |
Definition at line 273 of file riscv_encoding.h.
#define MCFG_INFO_DLM (1<<8) |
Definition at line 271 of file riscv_encoding.h.
#define MCFG_INFO_DSP_N1 (1<<12) |
Definition at line 275 of file riscv_encoding.h.
#define MCFG_INFO_DSP_N2 (1<<13) |
Definition at line 276 of file riscv_encoding.h.
#define MCFG_INFO_DSP_N3 (1<<14) |
Definition at line 277 of file riscv_encoding.h.
#define MCFG_INFO_ECC (1<<1) |
Definition at line 264 of file riscv_encoding.h.
#define MCFG_INFO_FIO (1<<4) |
Definition at line 267 of file riscv_encoding.h.
#define MCFG_INFO_ICACHE (1<<9) |
Definition at line 272 of file riscv_encoding.h.
#define MCFG_INFO_ILM (1<<7) |
Definition at line 270 of file riscv_encoding.h.
#define MCFG_INFO_IREGION_EXIST (1<<16) |
Definition at line 278 of file riscv_encoding.h.
#define MCFG_INFO_NICE (1<<6) |
Definition at line 269 of file riscv_encoding.h.
#define MCFG_INFO_PLIC (1<<3) |
Definition at line 266 of file riscv_encoding.h.
#define MCFG_INFO_PPI (1<<5) |
Definition at line 268 of file riscv_encoding.h.
#define MCFG_INFO_SMP (1<<11) |
Definition at line 274 of file riscv_encoding.h.
#define MCFG_INFO_TEE (1<<0) |
Definition at line 263 of file riscv_encoding.h.
#define MCFG_INFO_VP (0x3<<17) |
Definition at line 279 of file riscv_encoding.h.
#define MCONTROL_ACTION (0x3f<<12) |
Definition at line 124 of file riscv_encoding.h.
#define MCONTROL_ACTION_DEBUG_EXCEPTION 0 |
Definition at line 138 of file riscv_encoding.h.
#define MCONTROL_ACTION_DEBUG_MODE 1 |
Definition at line 139 of file riscv_encoding.h.
#define MCONTROL_ACTION_TRACE_EMIT 4 |
Definition at line 142 of file riscv_encoding.h.
#define MCONTROL_ACTION_TRACE_START 2 |
Definition at line 140 of file riscv_encoding.h.
#define MCONTROL_ACTION_TRACE_STOP 3 |
Definition at line 141 of file riscv_encoding.h.
#define MCONTROL_CHAIN (1<<11) |
Definition at line 125 of file riscv_encoding.h.
#define MCONTROL_DMODE | ( | xlen | ) | (1ULL<<((xlen)-5)) |
Definition at line 119 of file riscv_encoding.h.
#define MCONTROL_EXECUTE (1<<2) |
Definition at line 131 of file riscv_encoding.h.
#define MCONTROL_H (1<<5) |
Definition at line 128 of file riscv_encoding.h.
#define MCONTROL_LOAD (1<<0) |
Definition at line 133 of file riscv_encoding.h.
#define MCONTROL_M (1<<6) |
Definition at line 127 of file riscv_encoding.h.
#define MCONTROL_MASKMAX | ( | xlen | ) | (0x3fULL<<((xlen)-11)) |
Definition at line 120 of file riscv_encoding.h.
#define MCONTROL_MATCH (0xf<<7) |
Definition at line 126 of file riscv_encoding.h.
#define MCONTROL_MATCH_EQUAL 0 |
Definition at line 144 of file riscv_encoding.h.
#define MCONTROL_MATCH_GE 2 |
Definition at line 146 of file riscv_encoding.h.
#define MCONTROL_MATCH_LT 3 |
Definition at line 147 of file riscv_encoding.h.
#define MCONTROL_MATCH_MASK_HIGH 5 |
Definition at line 149 of file riscv_encoding.h.
#define MCONTROL_MATCH_MASK_LOW 4 |
Definition at line 148 of file riscv_encoding.h.
#define MCONTROL_MATCH_NAPOT 1 |
Definition at line 145 of file riscv_encoding.h.
#define MCONTROL_S (1<<4) |
Definition at line 129 of file riscv_encoding.h.
#define MCONTROL_SELECT (1<<19) |
Definition at line 122 of file riscv_encoding.h.
#define MCONTROL_STORE (1<<1) |
Definition at line 132 of file riscv_encoding.h.
#define MCONTROL_TIMING (1<<18) |
Definition at line 123 of file riscv_encoding.h.
#define MCONTROL_TYPE | ( | xlen | ) | (0xfULL<<((xlen)-4)) |
Definition at line 118 of file riscv_encoding.h.
#define MCONTROL_TYPE_MATCH 2 |
Definition at line 136 of file riscv_encoding.h.
#define MCONTROL_TYPE_NONE 0 |
Definition at line 135 of file riscv_encoding.h.
#define MCONTROL_U (1<<3) |
Definition at line 130 of file riscv_encoding.h.
#define MCOUNTINHIBIT_CY (1<<0) |
Definition at line 208 of file riscv_encoding.h.
#define MCOUNTINHIBIT_IR (1<<2) |
Definition at line 207 of file riscv_encoding.h.
#define MDCAUSE_MDCAUSE (0x7) |
Definition at line 229 of file riscv_encoding.h.
#define MDCFG_DC_ECC (0x1<<10) |
Definition at line 292 of file riscv_encoding.h.
#define MDCFG_DC_LSIZE (0x7<<7) |
Definition at line 291 of file riscv_encoding.h.
#define MDCFG_DC_SET (0xF<<0) |
Definition at line 289 of file riscv_encoding.h.
#define MDCFG_DC_WAY (0x7<<4) |
Definition at line 290 of file riscv_encoding.h.
#define MDCFG_DLM_ECC (0x1<<21) |
Definition at line 294 of file riscv_encoding.h.
#define MDCFG_DLM_SIZE (0x1F<<16) |
Definition at line 293 of file riscv_encoding.h.
#define MDLM_CTL_DLM_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
Definition at line 218 of file riscv_encoding.h.
#define MDLM_CTL_DLM_ECC_CHK_EN (1<<4) |
Definition at line 219 of file riscv_encoding.h.
#define MDLM_CTL_DLM_ECC_EN (1<<1) |
Definition at line 223 of file riscv_encoding.h.
#define MDLM_CTL_DLM_ECC_EXCP_EN (1<<2) |
Definition at line 222 of file riscv_encoding.h.
#define MDLM_CTL_DLM_ECC_INJ_EN (1<<3) |
Definition at line 221 of file riscv_encoding.h.
#define MDLM_CTL_DLM_EN (1<<0) |
Definition at line 224 of file riscv_encoding.h.
#define MDLM_CTL_DLM_RWECC (1<<3) |
Definition at line 220 of file riscv_encoding.h.
#define MECC_CODE_CODE (0x1FF) |
Definition at line 307 of file riscv_encoding.h.
#define MECC_CODE_RAMID (0x1F<<16) |
Definition at line 308 of file riscv_encoding.h.
#define MECC_CODE_SRAMID (0x1F<<24) |
Definition at line 309 of file riscv_encoding.h.
#define MECC_LOCK_ECC_LOCK (0x1) |
Definition at line 305 of file riscv_encoding.h.
#define MENVCFG_CBCFE (0x1 << 6) |
Definition at line 187 of file riscv_encoding.h.
#define MENVCFG_CBIE_EN (0x11 << 4) |
Definition at line 184 of file riscv_encoding.h.
#define MENVCFG_CBIE_FLUSH (0x01 << 4) |
Definition at line 185 of file riscv_encoding.h.
#define MENVCFG_CBIE_INVAL (0x11 << 4) |
Definition at line 186 of file riscv_encoding.h.
#define MENVCFG_CBZE (0x1 << 7) |
Definition at line 188 of file riscv_encoding.h.
#define MFIOCFG_INFO_FIO_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
Definition at line 303 of file riscv_encoding.h.
#define MFIOCFG_INFO_FIO_SIZE (0x1F<<1) |
Definition at line 302 of file riscv_encoding.h.
#define MICFG_IC_ECC (0x1<<10) |
Definition at line 284 of file riscv_encoding.h.
#define MICFG_IC_LSIZE (0x7<<7) |
Definition at line 283 of file riscv_encoding.h.
#define MICFG_IC_SET (0xF<<0) |
Definition at line 281 of file riscv_encoding.h.
#define MICFG_IC_WAY (0x7<<4) |
Definition at line 282 of file riscv_encoding.h.
#define MICFG_ILM_ECC (0x1<<22) |
Definition at line 287 of file riscv_encoding.h.
#define MICFG_ILM_SIZE (0x1F<<16) |
Definition at line 285 of file riscv_encoding.h.
#define MICFG_ILM_XONLY (0x1<<21) |
Definition at line 286 of file riscv_encoding.h.
#define MIE_HEIE MIP_HEIP |
Definition at line 168 of file riscv_encoding.h.
#define MIE_HSIE MIP_HSIP |
Definition at line 162 of file riscv_encoding.h.
#define MIE_HTIE MIP_HTIP |
Definition at line 165 of file riscv_encoding.h.
#define MIE_MEIE MIP_MEIP |
Definition at line 169 of file riscv_encoding.h.
#define MIE_MSIE MIP_MSIP |
Definition at line 163 of file riscv_encoding.h.
#define MIE_MTIE MIP_MTIP |
Definition at line 166 of file riscv_encoding.h.
#define MIE_SEIE MIP_SEIP |
Definition at line 167 of file riscv_encoding.h.
#define MIE_SSIE MIP_SSIP |
Definition at line 161 of file riscv_encoding.h.
#define MIE_STIE MIP_STIP |
Definition at line 164 of file riscv_encoding.h.
#define MILM_CTL_ILM_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
Definition at line 210 of file riscv_encoding.h.
#define MILM_CTL_ILM_ECC_CHK_EN (1<<4) |
Definition at line 211 of file riscv_encoding.h.
#define MILM_CTL_ILM_ECC_EN (1<<1) |
Definition at line 215 of file riscv_encoding.h.
#define MILM_CTL_ILM_ECC_EXCP_EN (1<<2) |
Definition at line 214 of file riscv_encoding.h.
#define MILM_CTL_ILM_ECC_INJ_EN (1<<3) |
Definition at line 213 of file riscv_encoding.h.
#define MILM_CTL_ILM_EN (1<<0) |
Definition at line 216 of file riscv_encoding.h.
#define MILM_CTL_ILM_RWECC (1<<3) |
Definition at line 212 of file riscv_encoding.h.
#define MIP_HEIP (1 << IRQ_H_EXT) |
Definition at line 158 of file riscv_encoding.h.
#define MIP_HSIP (1 << IRQ_H_SOFT) |
Definition at line 152 of file riscv_encoding.h.
#define MIP_HTIP (1 << IRQ_H_TIMER) |
Definition at line 155 of file riscv_encoding.h.
#define MIP_MEIP (1 << IRQ_M_EXT) |
Definition at line 159 of file riscv_encoding.h.
#define MIP_MSIP (1 << IRQ_M_SOFT) |
Definition at line 153 of file riscv_encoding.h.
#define MIP_MTIP (1 << IRQ_M_TIMER) |
Definition at line 156 of file riscv_encoding.h.
#define MIP_SEIP (1 << IRQ_S_EXT) |
Definition at line 157 of file riscv_encoding.h.
#define MIP_SSIP (1 << IRQ_S_SOFT) |
Definition at line 151 of file riscv_encoding.h.
#define MIP_STIP (1 << IRQ_S_TIMER) |
Definition at line 154 of file riscv_encoding.h.
#define MIRGB_INFO_IREGION_SIZE_BOFS (1) |
Definition at line 297 of file riscv_encoding.h.
#define MIRGB_INFO_IRG_BASE_ADDR_BOFS (10) |
Definition at line 296 of file riscv_encoding.h.
#define MISALIGNED_FETCH (1 << CAUSE_MISALIGNED_FETCH) |
Definition at line 1075 of file riscv_encoding.h.
#define MISALIGNED_LOAD (1 << CAUSE_MISALIGNED_LOAD) |
Definition at line 1079 of file riscv_encoding.h.
#define MISALIGNED_STORE (1 << CAUSE_MISALIGNED_STORE) |
Definition at line 1081 of file riscv_encoding.h.
#define MMISC_CTL_BPU (1<<3) |
Definition at line 238 of file riscv_encoding.h.
#define MMISC_CTL_CODE_BUS_ERR (1<<8) |
Definition at line 235 of file riscv_encoding.h.
#define MMISC_CTL_IMRETURN_ENABLE (1<<10) |
Definition at line 233 of file riscv_encoding.h.
#define MMISC_CTL_LDSPEC_ENABLE (1<<12) |
Definition at line 231 of file riscv_encoding.h.
#define MMISC_CTL_MISALIGN (1<<6) |
Definition at line 236 of file riscv_encoding.h.
#define MMISC_CTL_NMI_CAUSE_FFF (1<<9) |
Definition at line 234 of file riscv_encoding.h.
#define MMISC_CTL_SIJUMP_ENABLE (1<<11) |
Definition at line 232 of file riscv_encoding.h.
#define MMISC_CTL_ZC (1<<7) |
Definition at line 237 of file riscv_encoding.h.
#define MPPICFG_INFO_PPI_BPA (((1ULL<<((__riscv_xlen)-10))-1)<<10) |
Definition at line 300 of file riscv_encoding.h.
#define MPPICFG_INFO_PPI_SIZE (0x1F<<1) |
Definition at line 299 of file riscv_encoding.h.
#define MSTACK_CTRL_MODE (0x1<<2) |
Definition at line 327 of file riscv_encoding.h.
#define MSTACK_CTRL_OVF_TRACK_EN (0x1) |
Definition at line 329 of file riscv_encoding.h.
#define MSTACK_CTRL_UDF_EN (0x1<<1) |
Definition at line 328 of file riscv_encoding.h.
#define MSTATUS32_SD 0x80000000 |
Definition at line 56 of file riscv_encoding.h.
#define MSTATUS64_SD 0x8000000000000000 |
Definition at line 63 of file riscv_encoding.h.
#define MSTATUS_FS 0x00006000 |
Definition at line 48 of file riscv_encoding.h.
#define MSTATUS_FS_CLEAN 0x00004000 |
Definition at line 66 of file riscv_encoding.h.
#define MSTATUS_FS_DIRTY 0x00006000 |
Definition at line 67 of file riscv_encoding.h.
#define MSTATUS_FS_INITIAL 0x00002000 |
Definition at line 65 of file riscv_encoding.h.
#define MSTATUS_GVA 0x0000004000000000 |
Definition at line 61 of file riscv_encoding.h.
#define MSTATUS_HIE 0x00000004 |
Definition at line 39 of file riscv_encoding.h.
#define MSTATUS_MBE 0x0000002000000000 |
Definition at line 60 of file riscv_encoding.h.
#define MSTATUS_MIE 0x00000008 |
Definition at line 40 of file riscv_encoding.h.
#define MSTATUS_MPIE 0x00000080 |
Definition at line 44 of file riscv_encoding.h.
#define MSTATUS_MPP 0x00001800 |
Definition at line 47 of file riscv_encoding.h.
#define MSTATUS_MPRV 0x00020000 |
Definition at line 50 of file riscv_encoding.h.
#define MSTATUS_MPV 0x0000008000000000 |
Definition at line 62 of file riscv_encoding.h.
#define MSTATUS_MXR 0x00080000 |
Definition at line 52 of file riscv_encoding.h.
#define MSTATUS_SBE 0x0000001000000000 |
Definition at line 59 of file riscv_encoding.h.
#define MSTATUS_SIE 0x00000002 |
Definition at line 38 of file riscv_encoding.h.
#define MSTATUS_SPIE 0x00000020 |
Definition at line 42 of file riscv_encoding.h.
#define MSTATUS_SPP 0x00000100 |
Definition at line 45 of file riscv_encoding.h.
#define MSTATUS_SUM 0x00040000 |
Definition at line 51 of file riscv_encoding.h.
#define MSTATUS_SXL 0x0000000C00000000 |
Definition at line 58 of file riscv_encoding.h.
#define MSTATUS_TSR 0x00400000 |
Definition at line 55 of file riscv_encoding.h.
#define MSTATUS_TVM 0x00100000 |
Definition at line 53 of file riscv_encoding.h.
#define MSTATUS_TW 0x00200000 |
Definition at line 54 of file riscv_encoding.h.
#define MSTATUS_UBE 0x00000040 |
Definition at line 43 of file riscv_encoding.h.
#define MSTATUS_UIE 0x00000001 |
Definition at line 37 of file riscv_encoding.h.
#define MSTATUS_UPIE 0x00000010 |
Definition at line 41 of file riscv_encoding.h.
#define MSTATUS_UXL 0x0000000300000000 |
Definition at line 57 of file riscv_encoding.h.
#define MSTATUS_VS 0x00000600 |
Definition at line 46 of file riscv_encoding.h.
#define MSTATUS_VS_CLEAN 0x00000400 |
Definition at line 70 of file riscv_encoding.h.
#define MSTATUS_VS_DIRTY 0x00000600 |
Definition at line 71 of file riscv_encoding.h.
#define MSTATUS_VS_INITIAL 0x00000200 |
Definition at line 69 of file riscv_encoding.h.
#define MSTATUS_XS 0x00018000 |
Definition at line 49 of file riscv_encoding.h.
#define MSTATUSH_GVA 0x00000040 |
Definition at line 75 of file riscv_encoding.h.
#define MSTATUSH_MBE 0x00000020 |
Definition at line 74 of file riscv_encoding.h.
#define MSTATUSH_MPV 0x00000080 |
Definition at line 76 of file riscv_encoding.h.
#define MSTATUSH_SBE 0x00000010 |
Definition at line 73 of file riscv_encoding.h.
#define MSUBM_PTYP (0x3<<8) |
Definition at line 226 of file riscv_encoding.h.
#define MSUBM_TYP (0x3<<6) |
Definition at line 227 of file riscv_encoding.h.
#define MTVT2_COMMON_CODE_ENTRY (((1ULL<<((__riscv_xlen)-2))-1)<<2) |
Definition at line 261 of file riscv_encoding.h.
#define MTVT2_MTVT2EN (1<<0) |
Definition at line 260 of file riscv_encoding.h.
#define PMP_A 0x18 |
Definition at line 409 of file riscv_encoding.h.
#define PMP_A_NA4 0x10 |
Definition at line 411 of file riscv_encoding.h.
#define PMP_A_NAPOT 0x18 |
Definition at line 412 of file riscv_encoding.h.
#define PMP_A_TOR 0x08 |
Definition at line 410 of file riscv_encoding.h.
#define PMP_COUNT 16 |
Definition at line 416 of file riscv_encoding.h.
#define PMP_L 0x80 |
Definition at line 413 of file riscv_encoding.h.
#define PMP_R 0x01 |
Definition at line 406 of file riscv_encoding.h.
#define PMP_SHIFT 2 |
Definition at line 415 of file riscv_encoding.h.
#define PMP_W 0x02 |
Definition at line 407 of file riscv_encoding.h.
#define PMP_X 0x04 |
Definition at line 408 of file riscv_encoding.h.
#define PRV_H 2 |
Definition at line 336 of file riscv_encoding.h.
#define PRV_M 3 |
Definition at line 337 of file riscv_encoding.h.
#define PRV_S 1 |
Definition at line 335 of file riscv_encoding.h.
#define PRV_U 0 |
Definition at line 334 of file riscv_encoding.h.
#define PTE_A 0x040 |
Definition at line 451 of file riscv_encoding.h.
#define PTE_D 0x080 |
Definition at line 452 of file riscv_encoding.h.
#define PTE_G 0x020 |
Definition at line 450 of file riscv_encoding.h.
#define PTE_PPN_SHIFT 10 |
Definition at line 455 of file riscv_encoding.h.
#define PTE_R 0x002 |
Definition at line 446 of file riscv_encoding.h.
#define PTE_SOFT 0x300 |
Definition at line 453 of file riscv_encoding.h.
Definition at line 457 of file riscv_encoding.h.
#define PTE_U 0x010 |
Definition at line 449 of file riscv_encoding.h.
#define PTE_V 0x001 |
Definition at line 445 of file riscv_encoding.h.
#define PTE_W 0x004 |
Definition at line 447 of file riscv_encoding.h.
#define PTE_X 0x008 |
Definition at line 448 of file riscv_encoding.h.
#define SATP32_ASID 0x7FC00000 |
Definition at line 347 of file riscv_encoding.h.
#define SATP32_MODE 0x80000000 |
Definition at line 346 of file riscv_encoding.h.
#define SATP32_PPN 0x003FFFFF |
Definition at line 348 of file riscv_encoding.h.
#define SATP64_ASID 0x0FFFF00000000000 |
Definition at line 350 of file riscv_encoding.h.
#define SATP64_MODE 0xF000000000000000 |
Definition at line 349 of file riscv_encoding.h.
#define SATP64_PPN 0x00000FFFFFFFFFFF |
Definition at line 351 of file riscv_encoding.h.
#define SATP_MODE_OFF 0 |
Definition at line 353 of file riscv_encoding.h.
#define SATP_MODE_SV32 1 |
Definition at line 354 of file riscv_encoding.h.
#define SATP_MODE_SV39 8 |
Definition at line 355 of file riscv_encoding.h.
#define SATP_MODE_SV48 9 |
Definition at line 356 of file riscv_encoding.h.
#define SATP_MODE_SV57 10 |
Definition at line 357 of file riscv_encoding.h.
#define SATP_MODE_SV64 11 |
Definition at line 358 of file riscv_encoding.h.
#define SCAUSE_CAUSE 0x000003FFUL |
Definition at line 182 of file riscv_encoding.h.
#define SCAUSE_INTR MCAUSE_INTR |
Definition at line 181 of file riscv_encoding.h.
#define SENVCFG_CBCFE (0x1 << 6) |
Definition at line 192 of file riscv_encoding.h.
#define SENVCFG_CBIE_EN (0x11 << 4) |
Definition at line 189 of file riscv_encoding.h.
#define SENVCFG_CBIE_FLUSH (0x01 << 4) |
Definition at line 190 of file riscv_encoding.h.
#define SENVCFG_CBIE_INVAL (0x11 << 4) |
Definition at line 191 of file riscv_encoding.h.
#define SENVCFG_CBZE (0x1 << 7) |
Definition at line 193 of file riscv_encoding.h.
#define SIE_SEIE MIP_SEIP |
Definition at line 177 of file riscv_encoding.h.
#define SIE_SSIE MIP_SSIP |
Definition at line 175 of file riscv_encoding.h.
#define SIE_STIE MIP_STIP |
Definition at line 176 of file riscv_encoding.h.
#define SIP_SEIP MIP_SEIP |
Definition at line 173 of file riscv_encoding.h.
#define SIP_SSIP MIP_SSIP |
Definition at line 331 of file riscv_encoding.h.
#define SIP_SSIP MIP_SSIP |
Definition at line 331 of file riscv_encoding.h.
#define SIP_STIP MIP_STIP |
Definition at line 332 of file riscv_encoding.h.
#define SIP_STIP MIP_STIP |
Definition at line 332 of file riscv_encoding.h.
#define SLEEPVALUE_SLEEPVALUE (0x1) |
Definition at line 205 of file riscv_encoding.h.
#define SMPU_A SPMP_A |
Definition at line 436 of file riscv_encoding.h.
#define SMPU_A_NA4 SPMP_A_NA4 |
Definition at line 438 of file riscv_encoding.h.
#define SMPU_A_NAPOT SPMP_A_NAPOT |
Definition at line 439 of file riscv_encoding.h.
#define SMPU_A_TOR SPMP_A_TOR |
Definition at line 437 of file riscv_encoding.h.
#define SMPU_R SPMP_R |
Definition at line 433 of file riscv_encoding.h.
#define SMPU_S 0x80 |
Definition at line 440 of file riscv_encoding.h.
#define SMPU_SHIFT PMP_SHIFT |
Definition at line 442 of file riscv_encoding.h.
#define SMPU_W SPMP_W |
Definition at line 434 of file riscv_encoding.h.
#define SMPU_X SPMP_X |
Definition at line 435 of file riscv_encoding.h.
#define SPMP_A PMP_A |
Definition at line 422 of file riscv_encoding.h.
#define SPMP_A_NA4 PMP_A_NA4 |
Definition at line 424 of file riscv_encoding.h.
#define SPMP_A_NAPOT PMP_A_NAPOT |
Definition at line 425 of file riscv_encoding.h.
#define SPMP_A_TOR PMP_A_TOR |
Definition at line 423 of file riscv_encoding.h.
#define SPMP_COUNT 16 |
Definition at line 430 of file riscv_encoding.h.
#define SPMP_L PMP_L |
Definition at line 427 of file riscv_encoding.h.
#define SPMP_R PMP_R |
Definition at line 419 of file riscv_encoding.h.
#define SPMP_SHIFT PMP_SHIFT |
Definition at line 429 of file riscv_encoding.h.
#define SPMP_U 0x40 |
Definition at line 426 of file riscv_encoding.h.
#define SPMP_W PMP_W |
Definition at line 420 of file riscv_encoding.h.
#define SPMP_X PMP_X |
Definition at line 421 of file riscv_encoding.h.
#define SSTATUS32_SD 0x80000000 |
Definition at line 89 of file riscv_encoding.h.
#define SSTATUS64_SD 0x8000000000000000 |
Definition at line 91 of file riscv_encoding.h.
#define SSTATUS_FS 0x00006000 |
Definition at line 85 of file riscv_encoding.h.
#define SSTATUS_MXR 0x00080000 |
Definition at line 88 of file riscv_encoding.h.
#define SSTATUS_SIE 0x00000002 |
Definition at line 79 of file riscv_encoding.h.
#define SSTATUS_SPIE 0x00000020 |
Definition at line 81 of file riscv_encoding.h.
#define SSTATUS_SPP 0x00000100 |
Definition at line 83 of file riscv_encoding.h.
#define SSTATUS_SUM 0x00040000 |
Definition at line 87 of file riscv_encoding.h.
#define SSTATUS_UBE 0x00000040 |
Definition at line 82 of file riscv_encoding.h.
#define SSTATUS_UIE 0x00000001 |
Definition at line 78 of file riscv_encoding.h.
#define SSTATUS_UPIE 0x00000010 |
Definition at line 80 of file riscv_encoding.h.
#define SSTATUS_UXL 0x0000000300000000 |
Definition at line 90 of file riscv_encoding.h.
#define SSTATUS_VS 0x00000600 |
Definition at line 84 of file riscv_encoding.h.
#define SSTATUS_XS 0x00018000 |
Definition at line 86 of file riscv_encoding.h.
#define STORE_PAGE_FAULT (1 << CAUSE_STORE_PAGE_FAULT) |
Definition at line 1086 of file riscv_encoding.h.
#define TXEVT_TXEVT (0x1) |
Definition at line 204 of file riscv_encoding.h.
#define UCODE_OV (0x1) |
Definition at line 197 of file riscv_encoding.h.
#define USER_ECALL (1 << CAUSE_USER_ECALL) |
Definition at line 1083 of file riscv_encoding.h.
#define USTATUS_UIE 0x00000001 |
Definition at line 93 of file riscv_encoding.h.
#define USTATUS_UPIE 0x00000010 |
Definition at line 94 of file riscv_encoding.h.
#define VM_MBARE 0 |
Definition at line 339 of file riscv_encoding.h.
#define VM_MBB 1 |
Definition at line 340 of file riscv_encoding.h.
#define VM_MBBID 2 |
Definition at line 341 of file riscv_encoding.h.
#define VM_SV32 8 |
Definition at line 342 of file riscv_encoding.h.
#define VM_SV39 9 |
Definition at line 343 of file riscv_encoding.h.
#define VM_SV48 10 |
Definition at line 344 of file riscv_encoding.h.
#define WFE_WFE (0x1) |
Definition at line 203 of file riscv_encoding.h.