ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

senvcfg

T1 riscv register register
Supervisor Environment Configuration
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (S, U)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeS
ExtensionsS, U

Summary

Contains fields that control certain characteristics of the U-mode execution environment.

Syntax / Encoding

CSR 0x10a (S-mode, RW)

Bitfields (7)

BitsFieldDescription
8UKTEIf 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 e
7CBZE*Cache Block Zero instruction Enable* Bit is read-only 0 when menvcfg.CBZE is clear. Enables the execution of the cache block zero instruction, cbo.zero, in U-mode<% if ext?(:H) %> and (in conjunction with henvcfg.CBZE) VU-mode<% end %>. * 0: The instruction raises an illegal instruction<% if ext?(:H) %> or virtua
6CBCFE*Cache Block Clean and Flush instruction Enable* Enables the execution of the cache block clean instruction, cbo.clean, and the cache block flush instruction, cbo.flush, <% if ext?(:S) %> in S-mode <% elsif ext?(:U) %> in U-mode <% end %>. * 0: The instruction raises an illegal instruction <% if ext?(:H) %>or virtu
5:4CBIE*Cache Block Invalidate instruction Enable* The legal values of this field do not depend on menvcfg.CBIE. When the reserved value 10 is written, it is ignored and the field remains unchanged. Execution of cbo.inval in U-mode is enabled only if it is also enabled in S-mode by menvcfg.CBIE. If menvcfg.CBIE is 01, an en
3SSE*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: - 32-bit Zicfiss instructions will revert to their behavior as defined by Zimop. - 16-bit Zicfiss ins
2LPE*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: * The hart does not update the ELP state; it remains as NO_LP_EXPECTED. * The LPAD instruction
0FIOM*Fence of I/O implies Memory* When either senvcfg.FIOM or menvcfg.FIOM is set, FENCE instructions ordering I/O regions also implicitly order memory regions when executed in U-mode as follows: [separator="!",%autowidth,float="center",align="center",cols="^,<",options="header"] !Instruction bit !Meaning when set !PI +