senvcfg
Supervisor environment configuration register
- Address
0x10A- Group
- Supervisor-level CSRs
- Privilege
SRW(privileged spec CSR listing, Supervisor Configuration)- Access
- read/write; lowest privilege S (supervisor)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Supervisor Environment Configuration
Privileged spec: Supervisor environment configuration register
Description
Contains fields that control certain characteristics of the U-mode execution environment.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
CBZE | 7 | RW | Cache Block Zero instruction Enable Bit is read-only 0 when Enables the execution of the cache block zero instruction,
To summarize access:
See | ||||||
CBCFE | 6 | RW | Cache Block Clean and Flush instruction Enable Enables the execution of the cache block clean instruction, When S is implemented: in S-mode Otherwise, when U is implemented: in U-mode .
To summarize access:
See | ||||||
CBIE | 5-4 | RW-R | Cache Block Invalidate instruction Enable The legal values of this field do not depend on Execution of Controls execution of the cache block invalidate instruction, When H is implemented: and VU-mode (together with .
See | ||||||
UKTE | 8 | RW | If the Svukte extension is implemented, the UKTE field affects the behavior of instruction fetches and explicit memory accesses. When UKTE=0, instruction fetches and explicit memory accesses proceed as though the Svukte extension were not implemented. When UKTE=1, instruction fetches and explicit memory accesses with effective privilege mode U or VU are Svukte-qualified, as described in svukte. If Svukte is not implemented, UKTE is read-only zero. | ||||||
SSE | 3 | RW | Shadow Stack Enable When the SSE field is set to 1, the Zicfiss extension is activated in VU/U-mode. When the SSE field is 0, the Zicfiss extension remains inactive in VU/U-mode, and the following rules apply:
| ||||||
LPE | 2 | RW | Landing Pad Enable When the LPE field is set to 1, the Zicfilp extension is enabled in VU/U-mode. When the LPE field is 0, the Zicfilp extension is not enabled in VU/U-mode and the following rules apply to VU/U-mode:
| ||||||
FIOM | 0 | RW | Fence of I/O implies Memory When either
Similarly, in U-mode when FIOM=1, if an atomic instruction that accesses a region ordered as device I/O has its aq and/or rl bit set, then that instruction is ordered as though it accesses both device I/O and memory. See |
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 csrs.csv
- riscv-unified-db: spec/std/isa/csr/senvcfg.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)