Webcentive RISC-V Reference

RISC-V control and status registers (CSRs)

460 CSR pages from riscv-opcodes csrs.csv and csrs32.csv, grouped as in the privileged specification’s CSR listing. Bits [11:10] of a CSR address give read/write versus read-only, and bits [9:8] the lowest privilege level that can access it.

Unprivileged and user-level CSRs

AddressNamePrivilegeDescription
0x001fflagsURWFloating-Point Accrued Exceptions
0x002frmURWFloating-Point Dynamic Rounding Mode
0x003fcsrURWFloating-Point Control and Status Register (frm + fflags)
0x007utvt
0x008vstartURWVector start position
0x009vxsatURWFixed-point accrued saturation flag
0x00AvxrmURWFixed-point rounding mode
0x00FvcsrURWVector control and status register
0x011sspURWShadow Stack Pointer
0x015seedURWSeed for cryptographic random bit generators
0x017jvtURWTable jump base vector and control register
0x045unxti
0x046uintstatus
0x048uscratchcsw
0x049uscratchcswl
0xC00cycleUROCycle counter for rdcycle instruction
0xC01timeUROTimer for rdtime instruction
0xC02instretUROInstructions-retired counter for rdinstret instruction
0xC03hpmcounter3UROPerformance-monitoring counter
0xC04hpmcounter4UROPerformance-monitoring counter
0xC05hpmcounter5UROPerformance-monitoring counter
0xC06hpmcounter6UROPerformance-monitoring counter
0xC07hpmcounter7UROPerformance-monitoring counter
0xC08hpmcounter8UROPerformance-monitoring counter
0xC09hpmcounter9UROPerformance-monitoring counter
0xC0Ahpmcounter10UROPerformance-monitoring counter
0xC0Bhpmcounter11UROPerformance-monitoring counter
0xC0Chpmcounter12UROPerformance-monitoring counter
0xC0Dhpmcounter13UROPerformance-monitoring counter
0xC0Ehpmcounter14UROPerformance-monitoring counter
0xC0Fhpmcounter15UROPerformance-monitoring counter
0xC10hpmcounter16UROPerformance-monitoring counter
0xC11hpmcounter17UROPerformance-monitoring counter
0xC12hpmcounter18UROPerformance-monitoring counter
0xC13hpmcounter19UROPerformance-monitoring counter
0xC14hpmcounter20UROPerformance-monitoring counter
0xC15hpmcounter21UROPerformance-monitoring counter
0xC16hpmcounter22UROPerformance-monitoring counter
0xC17hpmcounter23UROPerformance-monitoring counter
0xC18hpmcounter24UROPerformance-monitoring counter
0xC19hpmcounter25UROPerformance-monitoring counter
0xC1Ahpmcounter26UROPerformance-monitoring counter
0xC1Bhpmcounter27UROPerformance-monitoring counter
0xC1Chpmcounter28UROPerformance-monitoring counter
0xC1Dhpmcounter29UROPerformance-monitoring counter
0xC1Ehpmcounter30UROPerformance-monitoring counter
0xC1Fhpmcounter31UROPerformance-monitoring counter
0xC20vlUROVector length
0xC21vtypeUROVector data type register
0xC22vlenbUROVector register length in bytes
0xC23mtype
0xC80cyclehUROUpper 32 bits of cycle, RV32 only
0xC81timehUROUpper 32 bits of time, RV32 only
0xC82instrethUROUpper 32 bits of instret, RV32 only
0xC83hpmcounter3hUROUpper 32 bits of hpmcounter3, RV32 only
0xC84hpmcounter4hUROUpper 32 bits of hpmcounter4, RV32 only
0xC85hpmcounter5hUROUpper 32 bits of hpmcounter5, RV32 only
0xC86hpmcounter6hUROUpper 32 bits of hpmcounter6, RV32 only
0xC87hpmcounter7hUROUpper 32 bits of hpmcounter7, RV32 only
0xC88hpmcounter8hUROUpper 32 bits of hpmcounter8, RV32 only
0xC89hpmcounter9hUROUpper 32 bits of hpmcounter9, RV32 only
0xC8Ahpmcounter10hUROUpper 32 bits of hpmcounter10, RV32 only
0xC8Bhpmcounter11hUROUpper 32 bits of hpmcounter11, RV32 only
0xC8Chpmcounter12hUROUpper 32 bits of hpmcounter12, RV32 only
0xC8Dhpmcounter13hUROUpper 32 bits of hpmcounter13, RV32 only
0xC8Ehpmcounter14hUROUpper 32 bits of hpmcounter14, RV32 only
0xC8Fhpmcounter15hUROUpper 32 bits of hpmcounter15, RV32 only
0xC90hpmcounter16hUROUpper 32 bits of hpmcounter16, RV32 only
0xC91hpmcounter17hUROUpper 32 bits of hpmcounter17, RV32 only
0xC92hpmcounter18hUROUpper 32 bits of hpmcounter18, RV32 only
0xC93hpmcounter19hUROUpper 32 bits of hpmcounter19, RV32 only
0xC94hpmcounter20hUROUpper 32 bits of hpmcounter20, RV32 only
0xC95hpmcounter21hUROUpper 32 bits of hpmcounter21, RV32 only
0xC96hpmcounter22hUROUpper 32 bits of hpmcounter22, RV32 only
0xC97hpmcounter23hUROUpper 32 bits of hpmcounter23, RV32 only
0xC98hpmcounter24hUROUpper 32 bits of hpmcounter24, RV32 only
0xC99hpmcounter25hUROUpper 32 bits of hpmcounter25, RV32 only
0xC9Ahpmcounter26hUROUpper 32 bits of hpmcounter26, RV32 only
0xC9Bhpmcounter27hUROUpper 32 bits of hpmcounter27, RV32 only
0xC9Chpmcounter28hUROUpper 32 bits of hpmcounter28, RV32 only
0xC9Dhpmcounter29hUROUpper 32 bits of hpmcounter29, RV32 only
0xC9Ehpmcounter30hUROUpper 32 bits of hpmcounter30, RV32 only
0xC9Fhpmcounter31hUROUpper 32 bits of hpmcounter31, RV32 only

Supervisor-level CSRs

AddressNamePrivilegeDescription
0x100sstatusSRWSupervisor status register
0x104sieSRWSupervisor interrupt-enable register
0x105stvecSRWSupervisor trap handler base address
0x106scounterenSRWSupervisor counter enable
0x107stvt
0x10AsenvcfgSRWSupervisor environment configuration register
0x10Csstateen0SRWSupervisor State Enable 0 Register
0x10Dsstateen1SRWSupervisor State Enable 1 Register
0x10Esstateen2SRWSupervisor State Enable 2 Register
0x10Fsstateen3SRWSupervisor State Enable 3 Register
0x114siehSRWUpper 32 bits of sie, RV32 only
0x120scountinhibitSRWSupervisor counter-inhibit register
0x140sscratchSRWSupervisor scratch register
0x141sepcSRWSupervisor exception program counter
0x142scauseSRWSupervisor trap cause
0x143stvalSRWSupervisor trap value
0x144sipSRWSupervisor interrupt pending
0x145snxti
0x146sintstatus
0x148sscratchcsw
0x149sscratchcswl
0x14DstimecmpSRWSupervisor timer compare
0x14EsctrctlSRWSupervisor Control Transfer Records Control Register
0x14FsctrstatusSRWSupervisor Control Transfer Records Status Register
0x150siselectSRWSupervisor indirect register select
0x151siregSRWSupervisor indirect register alias
0x152sireg2SRWSupervisor indirect register alias 2
0x153sireg3SRWSupervisor indirect register alias 3
0x154siphSRWUpper 32 bits of sip, RV32 only
0x155sireg4SRWSupervisor indirect register alias 4
0x156sireg5SRWSupervisor indirect register alias 5
0x157sireg6SRWSupervisor indirect register alias 6
0x15CstopeiSRWSupervisor top external interrupt
0x15DstimecmphSRWUpper 32 bits of stimecmp, RV32 only
0x15FsctrdepthSRWSupervisor Control Transfer Records Depth Register
0x180satpSRWSupervisor address translation and protection
0x181srmcfgSRWSupervisor Resource Management Configuration
0x183spmpen
0x193spmpenh
0x5A8scontextSRWSupervisor-mode context register
0xDA0scountovfSROSupervisor count overflow
0xDB0stopiSROSupervisor top interrupt

Hypervisor and VS CSRs

AddressNamePrivilegeDescription
0x200vsstatusHRWVirtual supervisor status register
0x204vsieHRWVirtual supervisor interrupt-enable register
0x205vstvecHRWVirtual supervisor trap handler base address
0x214vsiehHRWUpper 32 bits of vsie, RV32 only
0x240vsscratchHRWVirtual supervisor scratch register
0x241vsepcHRWVirtual supervisor exception program counter
0x242vscauseHRWVirtual supervisor trap cause
0x243vstvalHRWVirtual supervisor trap value
0x244vsipHRWVirtual supervisor interrupt pending
0x24DvstimecmpHRWVirtual supervisor timer compare
0x24EvsctrctlHRWVirtual Supervisor Control Transfer Records Control Register
0x250vsiselectHRWVirtual supervisor indirect register select
0x251vsiregHRWVirtual supervisor indirect register alias
0x252vsireg2HRWVirtual supervisor indirect register alias 2
0x253vsireg3HRWVirtual supervisor indirect register alias 3
0x254vsiphHRWUpper 32 bits of vsip, RV32 only
0x255vsireg4HRWVirtual supervisor indirect register alias 4
0x256vsireg5HRWVirtual supervisor indirect register alias 5
0x257vsireg6HRWVirtual supervisor indirect register alias 6
0x25CvstopeiHRWVirtual supervisor top external interrupt
0x25DvstimecmphHRWUpper 32 bits of vstimecmp, RV32 only
0x280vsatpHRWVirtual supervisor address translation and protection
0x600hstatusHRWHypervisor status register
0x602hedelegHRWHypervisor exception delegation register
0x603hidelegHRWHypervisor interrupt delegation register
0x604hieHRWHypervisor interrupt-enable register
0x605htimedeltaHRWDelta for VS/VU-mode timer
0x606hcounterenHRWHypervisor counter enable
0x607hgeieHRWHypervisor guest external interrupt-enable register
0x608hvienHRWHypervisor virtual interrupt enables
0x609hvictlHRWHypervisor virtual interrupt control
0x60AhenvcfgHRWHypervisor environment configuration register
0x60Chstateen0HRWHypervisor State Enable 0 Register
0x60Dhstateen1HRWHypervisor State Enable 1 Register
0x60Ehstateen2HRWHypervisor State Enable 2 Register
0x60Fhstateen3HRWHypervisor State Enable 3 Register
0x612hedeleghHRWUpper 32 bits of hedeleg, RV32 only
0x613hideleghHRWUpper 32 bits of hideleg, RV32 only
0x615htimedeltahHRWUpper 32 bits of htimedelta, RV32 only
0x618hvienhHRWUpper 32 bits of hvien, RV32 only
0x61AhenvcfghHRWUpper 32 bits of henvcfg, RV32 only
0x61Chstateen0hHRWUpper 32 bits of Hypervisor State Enable 0 Register, RV32 only
0x61Dhstateen1hHRWUpper 32 bits of Hypervisor State Enable 1 Register, RV32 only
0x61Ehstateen2hHRWUpper 32 bits of Hypervisor State Enable 2 Register, RV32 only
0x61Fhstateen3hHRWUpper 32 bits of Hypervisor State Enable 3 Register, RV32 only
0x643htvalHRWHypervisor trap value
0x644hipHRWHypervisor interrupt pending
0x645hvipHRWHypervisor virtual interrupt pending
0x646hviprio1HRWHypervisor VS-level interrupt priorities
0x647hviprio2HRWHypervisor VS-level interrupt priorities
0x64AhtinstHRWHypervisor trap instruction (transformed)
0x655hviphHRWUpper 32 bits of hvip, RV32 only
0x656hviprio1hHRWUpper 32 bits of hviprio1, RV32 only
0x657hviprio2hHRWUpper 32 bits of hviprio2, RV32 only
0x680hgatpHRWHypervisor guest address translation and protection
0x6A8hcontextHRWHypervisor-mode context register
0xE12hgeipHROHypervisor guest external interrupt pending
0xEB0vstopiHROVirtual supervisor top interrupt

Machine-level CSRs

AddressNamePrivilegeDescription
0x300mstatusMRWMachine status register
0x301misaMRWISA and extensions
0x302medelegMRWMachine exception delegation register
0x303midelegMRWMachine interrupt delegation register
0x304mieMRWMachine interrupt-enable register
0x305mtvecMRWMachine trap-handler base address
0x306mcounterenMRWMachine counter enable
0x307mtvt
0x308mvienMRWMachine virtual interrupt enables
0x309mvipMRWMachine virtual interrupt-pending bits
0x30AmenvcfgMRWMachine environment configuration register
0x30Cmstateen0MRWMachine State Enable 0 Register
0x30Dmstateen1MRWMachine State Enable 1 Register
0x30Emstateen2MRWMachine State Enable 2 Register
0x30Fmstateen3MRWMachine State Enable 3 Register
0x310mstatushMRWUpper 32 bits of mstatus, RV32 only
0x312medeleghMRWUpper 32 bits of medeleg, RV32 only
0x313mideleghMRWUpper 32 bits of mideleg, RV32 only
0x314miehMRWUpper 32 bits of mie, RV32 only
0x316mpmpdeleg
0x318mvienhMRWUpper 32 bits of mvien, RV32 only
0x319mviphMRWUpper 32 bits of mvip, RV32 only
0x31AmenvcfghMRWUpper 32 bits of menvcfg, RV32 only
0x31Cmstateen0hMRWUpper 32 bits of Machine State Enable 0 Register, RV32 only
0x31Dmstateen1hMRWUpper 32 bits of Machine State Enable 1 Register, RV32 only
0x31Emstateen2hMRWUpper 32 bits of Machine State Enable 2 Register, RV32 only
0x31Fmstateen3hMRWUpper 32 bits of Machine State Enable 3 Register, RV32 only
0x320mcountinhibitMRWMachine counter-inhibit register
0x321mcyclecfgMRWMachine cycle counter configuration register
0x322minstretcfgMRWMachine instret counter configuration register
0x323mhpmevent3MRWMachine performance-monitoring event selector
0x324mhpmevent4MRWMachine performance-monitoring event selector
0x325mhpmevent5MRWMachine performance-monitoring event selector
0x326mhpmevent6MRWMachine performance-monitoring event selector
0x327mhpmevent7MRWMachine performance-monitoring event selector
0x328mhpmevent8MRWMachine performance-monitoring event selector
0x329mhpmevent9MRWMachine performance-monitoring event selector
0x32Amhpmevent10MRWMachine performance-monitoring event selector
0x32Bmhpmevent11MRWMachine performance-monitoring event selector
0x32Cmhpmevent12MRWMachine performance-monitoring event selector
0x32Dmhpmevent13MRWMachine performance-monitoring event selector
0x32Emhpmevent14MRWMachine performance-monitoring event selector
0x32Fmhpmevent15MRWMachine performance-monitoring event selector
0x330mhpmevent16MRWMachine performance-monitoring event selector
0x331mhpmevent17MRWMachine performance-monitoring event selector
0x332mhpmevent18MRWMachine performance-monitoring event selector
0x333mhpmevent19MRWMachine performance-monitoring event selector
0x334mhpmevent20MRWMachine performance-monitoring event selector
0x335mhpmevent21MRWMachine performance-monitoring event selector
0x336mhpmevent22MRWMachine performance-monitoring event selector
0x337mhpmevent23MRWMachine performance-monitoring event selector
0x338mhpmevent24MRWMachine performance-monitoring event selector
0x339mhpmevent25MRWMachine performance-monitoring event selector
0x33Amhpmevent26MRWMachine performance-monitoring event selector
0x33Bmhpmevent27MRWMachine performance-monitoring event selector
0x33Cmhpmevent28MRWMachine performance-monitoring event selector
0x33Dmhpmevent29MRWMachine performance-monitoring event selector
0x33Emhpmevent30MRWMachine performance-monitoring event selector
0x33Fmhpmevent31MRWMachine performance-monitoring event selector
0x340mscratchMRWMachine scratch register
0x341mepcMRWMachine exception program counter
0x342mcauseMRWMachine trap cause
0x343mtvalMRWMachine trap value
0x344mipMRWMachine interrupt pending
0x345mnxti
0x346mintstatus
0x348mscratchcsw
0x349mscratchcswl
0x34AmtinstMRWMachine trap instruction (transformed)
0x34Bmtval2MRWMachine second trap value
0x34EmctrctlMRWMachine Control Transfer Records Control Register
0x350miselectMRWMachine indirect register select
0x351miregMRWMachine indirect register alias
0x352mireg2MRWMachine indirect register alias 2
0x353mireg3MRWMachine indirect register alias 3
0x354miphMRWUpper 32 bits of mip, RV32 only
0x355mireg4MRWMachine indirect register alias 4
0x356mireg5MRWMachine indirect register alias 5
0x357mireg6MRWMachine indirect register alias 6
0x35CmtopeiMRWMachine top external interrupt
0x3A0pmpcfg0MRWPhysical memory protection configuration
0x3A1pmpcfg1MRWPhysical memory protection configuration, RV32 only
0x3A2pmpcfg2MRWPhysical memory protection configuration
0x3A3pmpcfg3MRWPhysical memory protection configuration, RV32 only
0x3A4pmpcfg4MRWPhysical memory protection configuration
0x3A5pmpcfg5MRWPhysical memory protection configuration, RV32 only
0x3A6pmpcfg6MRWPhysical memory protection configuration
0x3A7pmpcfg7MRWPhysical memory protection configuration, RV32 only
0x3A8pmpcfg8MRWPhysical memory protection configuration
0x3A9pmpcfg9MRWPhysical memory protection configuration, RV32 only
0x3AApmpcfg10MRWPhysical memory protection configuration
0x3ABpmpcfg11MRWPhysical memory protection configuration, RV32 only
0x3ACpmpcfg12MRWPhysical memory protection configuration
0x3ADpmpcfg13MRWPhysical memory protection configuration, RV32 only
0x3AEpmpcfg14MRWPhysical memory protection configuration
0x3AFpmpcfg15MRWPhysical memory protection configuration, RV32 only
0x3B0pmpaddr0MRWPhysical memory protection address register
0x3B1pmpaddr1MRWPhysical memory protection address register
0x3B2pmpaddr2MRWPhysical memory protection address register
0x3B3pmpaddr3MRWPhysical memory protection address register
0x3B4pmpaddr4MRWPhysical memory protection address register
0x3B5pmpaddr5MRWPhysical memory protection address register
0x3B6pmpaddr6MRWPhysical memory protection address register
0x3B7pmpaddr7MRWPhysical memory protection address register
0x3B8pmpaddr8MRWPhysical memory protection address register
0x3B9pmpaddr9MRWPhysical memory protection address register
0x3BApmpaddr10MRWPhysical memory protection address register
0x3BBpmpaddr11MRWPhysical memory protection address register
0x3BCpmpaddr12MRWPhysical memory protection address register
0x3BDpmpaddr13MRWPhysical memory protection address register
0x3BEpmpaddr14MRWPhysical memory protection address register
0x3BFpmpaddr15MRWPhysical memory protection address register
0x3C0pmpaddr16MRWPhysical memory protection address register
0x3C1pmpaddr17MRWPhysical memory protection address register
0x3C2pmpaddr18MRWPhysical memory protection address register
0x3C3pmpaddr19MRWPhysical memory protection address register
0x3C4pmpaddr20MRWPhysical memory protection address register
0x3C5pmpaddr21MRWPhysical memory protection address register
0x3C6pmpaddr22MRWPhysical memory protection address register
0x3C7pmpaddr23MRWPhysical memory protection address register
0x3C8pmpaddr24MRWPhysical memory protection address register
0x3C9pmpaddr25MRWPhysical memory protection address register
0x3CApmpaddr26MRWPhysical memory protection address register
0x3CBpmpaddr27MRWPhysical memory protection address register
0x3CCpmpaddr28MRWPhysical memory protection address register
0x3CDpmpaddr29MRWPhysical memory protection address register
0x3CEpmpaddr30MRWPhysical memory protection address register
0x3CFpmpaddr31MRWPhysical memory protection address register
0x3D0pmpaddr32MRWPhysical memory protection address register
0x3D1pmpaddr33MRWPhysical memory protection address register
0x3D2pmpaddr34MRWPhysical memory protection address register
0x3D3pmpaddr35MRWPhysical memory protection address register
0x3D4pmpaddr36MRWPhysical memory protection address register
0x3D5pmpaddr37MRWPhysical memory protection address register
0x3D6pmpaddr38MRWPhysical memory protection address register
0x3D7pmpaddr39MRWPhysical memory protection address register
0x3D8pmpaddr40MRWPhysical memory protection address register
0x3D9pmpaddr41MRWPhysical memory protection address register
0x3DApmpaddr42MRWPhysical memory protection address register
0x3DBpmpaddr43MRWPhysical memory protection address register
0x3DCpmpaddr44MRWPhysical memory protection address register
0x3DDpmpaddr45MRWPhysical memory protection address register
0x3DEpmpaddr46MRWPhysical memory protection address register
0x3DFpmpaddr47MRWPhysical memory protection address register
0x3E0pmpaddr48MRWPhysical memory protection address register
0x3E1pmpaddr49MRWPhysical memory protection address register
0x3E2pmpaddr50MRWPhysical memory protection address register
0x3E3pmpaddr51MRWPhysical memory protection address register
0x3E4pmpaddr52MRWPhysical memory protection address register
0x3E5pmpaddr53MRWPhysical memory protection address register
0x3E6pmpaddr54MRWPhysical memory protection address register
0x3E7pmpaddr55MRWPhysical memory protection address register
0x3E8pmpaddr56MRWPhysical memory protection address register
0x3E9pmpaddr57MRWPhysical memory protection address register
0x3EApmpaddr58MRWPhysical memory protection address register
0x3EBpmpaddr59MRWPhysical memory protection address register
0x3ECpmpaddr60MRWPhysical memory protection address register
0x3EDpmpaddr61MRWPhysical memory protection address register
0x3EEpmpaddr62MRWPhysical memory protection address register
0x3EFpmpaddr63MRWPhysical memory protection address register
0x721mcyclecfghMRWUpper 32 bits of mcyclecfg, RV32 only
0x722minstretcfghMRWUpper 32 bits of minstretcfg, RV32 only
0x723mhpmevent3hMRWUpper 32 bits of mhpmevent3, RV32 only
0x724mhpmevent4hMRWUpper 32 bits of mhpmevent4, RV32 only
0x725mhpmevent5hMRWUpper 32 bits of mhpmevent5, RV32 only
0x726mhpmevent6hMRWUpper 32 bits of mhpmevent6, RV32 only
0x727mhpmevent7hMRWUpper 32 bits of mhpmevent7, RV32 only
0x728mhpmevent8hMRWUpper 32 bits of mhpmevent8, RV32 only
0x729mhpmevent9hMRWUpper 32 bits of mhpmevent9, RV32 only
0x72Amhpmevent10hMRWUpper 32 bits of mhpmevent10, RV32 only
0x72Bmhpmevent11hMRWUpper 32 bits of mhpmevent11, RV32 only
0x72Cmhpmevent12hMRWUpper 32 bits of mhpmevent12, RV32 only
0x72Dmhpmevent13hMRWUpper 32 bits of mhpmevent13, RV32 only
0x72Emhpmevent14hMRWUpper 32 bits of mhpmevent14, RV32 only
0x72Fmhpmevent15hMRWUpper 32 bits of mhpmevent15, RV32 only
0x730mhpmevent16hMRWUpper 32 bits of mhpmevent16, RV32 only
0x731mhpmevent17hMRWUpper 32 bits of mhpmevent17, RV32 only
0x732mhpmevent18hMRWUpper 32 bits of mhpmevent18, RV32 only
0x733mhpmevent19hMRWUpper 32 bits of mhpmevent19, RV32 only
0x734mhpmevent20hMRWUpper 32 bits of mhpmevent20, RV32 only
0x735mhpmevent21hMRWUpper 32 bits of mhpmevent21, RV32 only
0x736mhpmevent22hMRWUpper 32 bits of mhpmevent22, RV32 only
0x737mhpmevent23hMRWUpper 32 bits of mhpmevent23, RV32 only
0x738mhpmevent24hMRWUpper 32 bits of mhpmevent24, RV32 only
0x739mhpmevent25hMRWUpper 32 bits of mhpmevent25, RV32 only
0x73Amhpmevent26hMRWUpper 32 bits of mhpmevent26, RV32 only
0x73Bmhpmevent27hMRWUpper 32 bits of mhpmevent27, RV32 only
0x73Cmhpmevent28hMRWUpper 32 bits of mhpmevent28, RV32 only
0x73Dmhpmevent29hMRWUpper 32 bits of mhpmevent29, RV32 only
0x73Emhpmevent30hMRWUpper 32 bits of mhpmevent30, RV32 only
0x73Fmhpmevent31hMRWUpper 32 bits of mhpmevent31, RV32 only
0x740mnscratchMRWResumable NMI scratch register
0x741mnepcMRWResumable NMI program counter
0x742mncauseMRWResumable NMI cause
0x744mnstatusMRWResumable NMI status
0x747mseccfgMRWMachine security configuration register
0x757mseccfghMRWUpper 32 bits of mseccfg, RV32 only
0xB00mcycleMRWMachine cycle counter
0xB02minstretMRWMachine instructions-retired counter
0xB03mhpmcounter3MRWMachine performance-monitoring counter
0xB04mhpmcounter4MRWMachine performance-monitoring counter
0xB05mhpmcounter5MRWMachine performance-monitoring counter
0xB06mhpmcounter6MRWMachine performance-monitoring counter
0xB07mhpmcounter7MRWMachine performance-monitoring counter
0xB08mhpmcounter8MRWMachine performance-monitoring counter
0xB09mhpmcounter9MRWMachine performance-monitoring counter
0xB0Amhpmcounter10MRWMachine performance-monitoring counter
0xB0Bmhpmcounter11MRWMachine performance-monitoring counter
0xB0Cmhpmcounter12MRWMachine performance-monitoring counter
0xB0Dmhpmcounter13MRWMachine performance-monitoring counter
0xB0Emhpmcounter14MRWMachine performance-monitoring counter
0xB0Fmhpmcounter15MRWMachine performance-monitoring counter
0xB10mhpmcounter16MRWMachine performance-monitoring counter
0xB11mhpmcounter17MRWMachine performance-monitoring counter
0xB12mhpmcounter18MRWMachine performance-monitoring counter
0xB13mhpmcounter19MRWMachine performance-monitoring counter
0xB14mhpmcounter20MRWMachine performance-monitoring counter
0xB15mhpmcounter21MRWMachine performance-monitoring counter
0xB16mhpmcounter22MRWMachine performance-monitoring counter
0xB17mhpmcounter23MRWMachine performance-monitoring counter
0xB18mhpmcounter24MRWMachine performance-monitoring counter
0xB19mhpmcounter25MRWMachine performance-monitoring counter
0xB1Amhpmcounter26MRWMachine performance-monitoring counter
0xB1Bmhpmcounter27MRWMachine performance-monitoring counter
0xB1Cmhpmcounter28MRWMachine performance-monitoring counter
0xB1Dmhpmcounter29MRWMachine performance-monitoring counter
0xB1Emhpmcounter30MRWMachine performance-monitoring counter
0xB1Fmhpmcounter31MRWMachine performance-monitoring counter
0xB80mcyclehMRWUpper 32 bits of mcycle, RV32 only
0xB82minstrethMRWUpper 32 bits of minstret, RV32 only
0xB83mhpmcounter3hMRWUpper 32 bits of mhpmcounter3, RV32 only
0xB84mhpmcounter4hMRWUpper 32 bits of mhpmcounter4, RV32 only
0xB85mhpmcounter5hMRWUpper 32 bits of mhpmcounter5, RV32 only
0xB86mhpmcounter6hMRWUpper 32 bits of mhpmcounter6, RV32 only
0xB87mhpmcounter7hMRWUpper 32 bits of mhpmcounter7, RV32 only
0xB88mhpmcounter8hMRWUpper 32 bits of mhpmcounter8, RV32 only
0xB89mhpmcounter9hMRWUpper 32 bits of mhpmcounter9, RV32 only
0xB8Amhpmcounter10hMRWUpper 32 bits of mhpmcounter10, RV32 only
0xB8Bmhpmcounter11hMRWUpper 32 bits of mhpmcounter11, RV32 only
0xB8Cmhpmcounter12hMRWUpper 32 bits of mhpmcounter12, RV32 only
0xB8Dmhpmcounter13hMRWUpper 32 bits of mhpmcounter13, RV32 only
0xB8Emhpmcounter14hMRWUpper 32 bits of mhpmcounter14, RV32 only
0xB8Fmhpmcounter15hMRWUpper 32 bits of mhpmcounter15, RV32 only
0xB90mhpmcounter16hMRWUpper 32 bits of mhpmcounter16, RV32 only
0xB91mhpmcounter17hMRWUpper 32 bits of mhpmcounter17, RV32 only
0xB92mhpmcounter18hMRWUpper 32 bits of mhpmcounter18, RV32 only
0xB93mhpmcounter19hMRWUpper 32 bits of mhpmcounter19, RV32 only
0xB94mhpmcounter20hMRWUpper 32 bits of mhpmcounter20, RV32 only
0xB95mhpmcounter21hMRWUpper 32 bits of mhpmcounter21, RV32 only
0xB96mhpmcounter22hMRWUpper 32 bits of mhpmcounter22, RV32 only
0xB97mhpmcounter23hMRWUpper 32 bits of mhpmcounter23, RV32 only
0xB98mhpmcounter24hMRWUpper 32 bits of mhpmcounter24, RV32 only
0xB99mhpmcounter25hMRWUpper 32 bits of mhpmcounter25, RV32 only
0xB9Amhpmcounter26hMRWUpper 32 bits of mhpmcounter26, RV32 only
0xB9Bmhpmcounter27hMRWUpper 32 bits of mhpmcounter27, RV32 only
0xB9Cmhpmcounter28hMRWUpper 32 bits of mhpmcounter28, RV32 only
0xB9Dmhpmcounter29hMRWUpper 32 bits of mhpmcounter29, RV32 only
0xB9Emhpmcounter30hMRWUpper 32 bits of mhpmcounter30, RV32 only
0xB9Fmhpmcounter31hMRWUpper 32 bits of mhpmcounter31, RV32 only
0xF11mvendoridMROVendor ID
0xF12marchidMROArchitecture ID
0xF13mimpidMROImplementation ID
0xF14mhartidMROHardware thread ID
0xF15mconfigptrMROPointer to configuration data structure
0xFB0mtopiMROMachine top interrupt

Debug CSRs (0x7A0 to 0x7BF)

AddressNamePrivilegeDescription
0x7A0tselectMRWDebug/Trace trigger register select
0x7A1tdata1MRWFirst Debug/Trace trigger data register
0x7A2tdata2MRWSecond Debug/Trace trigger data register
0x7A3tdata3MRWThird Debug/Trace trigger data register
0x7A4tinfoMRWTrigger info register
0x7A5tcontrolMRWTrigger control register
0x7A8mcontextMRWMachine-mode context register
0x7AAmscontextMachine Supervisor Context
0x7B0dcsrDRWDebug control and status register
0x7B1dpcDRWDebug program counter
0x7B2dscratch0DRWDebug scratch register 0
0x7B3dscratch1DRWDebug scratch register 1