menvcfgh
Upper 32 bits of menvcfg, RV32 only
- Address
0x31A- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Configuration)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- XLEN
- RV32 only
- Name in riscv-unified-db
- Machine Environment Configuration
Privileged spec: Upper 32 bits of menvcfg, RV32 only
Description
Contains bits to enable/disable extensions
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
STCE | 31 | RW | STimecmp Enable Alias of |
PBMTE | 30 | RW | Page Based Memory Type Enable Alias of |
ADUE | 29 | Alias of | |
CDE | 28 | RW | Counter Delegation Enable Alias of |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs32.csv
- riscv-unified-db: spec/std/isa/csr/menvcfgh.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)