Expand description

RISC-V CSR’s

The following registers are not available on 64-bit implementations.

  • cycleh
  • timeh
  • instreth
  • hpmcounter<3-31>h
  • mcycleh
  • minstreth
  • mhpmcounter<3-31>h

Modules

cycle register

cycleh register

Floating-point control and status register

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

Performance-monitoring counter

Upper 32 bits of performance-monitoring counter (RV32I only)

instret register

instreth register

marchid register

mcause register

mcounteren register

mcycle register

mcycleh register

medeleg register

mepc register

mhartid register

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring counter

Upper 32 bits of machine performance-monitoring counter (RV32I only)

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

Machine performance-monitoring event selector

mideleg register

mie register

mimpid register

minstret register

minstreth register

mip register

misa register

mscratch register

mstatus register

mtval register

mtvec register

mvendorid register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection address register

Physical memory protection configuration pmpcfg0 struct contains pmp0cfg - pmp3cfg for RV32, and pmp0cfg - pmp7cfg for RV64

Physical memory protection configuration pmpcfg2 struct contains pmp8cfg - pmp11cfg for RV32, or pmp8cfg - pmp15cfg for RV64

satp register

scause register

scounteren register

sepc register

sie register

sip register

sscratch register

sstatus register

stval register

stvec register

time register

timeh register

ucause register

uepc register

uie register

uip register

uscratch register

ustatus register

utval register

stvec register

Structs

Pmp struct holds a high-level representation of a single pmp configuration

Enums

Permission enum contains all possible permission modes for pmp registers

Range enum contains all possible addressing modes for pmp registers