Supervisor-mode Indirect CSR Access
Type: privileged
S (~> 1.13)
| Version | State | Ratified |
|---|---|---|
| 1.0.0 | ratified | 2024-11 |
Smcsrind/Sscsrind is an ISA extension that extends the indirect CSR access mechanism originally defined as part of the Smaia/Ssaia extensions, in order to make it available for use by other extensions without creating an unnecessary dependence on Smaia/Ssaia.
This extension confers two benefits:
It provides a means to access an array of registers via CSRs without requiring allocation of large chunks of the limited CSR address space.
It enables software to access each of an array of registers by index, without requiring a switch statement with a case for each register.
CSRs are accessed indirectly via this extension using select values, in contrast to being accessed directly using standard CSR numbers. A CSR accessible via one method may or may not be accessible via the other method. Select values are a separate address space from CSR numbers, and from tselect values in the Sdtrig extension. If a CSR is both directly and indirectly accessible, the CSR’s select value is unrelated to its CSR number.
Further, Machine-level and Supervisor-level select values are separate address spaces from each other; however, Machine-level and Supervisor-level CSRs with the same select value may be defined by an extension as partial or full aliases with respect to each other. This typically would be done for CSRs that can be delegated from Machine-level to Supervisor-level.
For a supervisor-level environment, extension Sscsrind is essentially the same as Smcsrind except excluding the machine-level CSRs and behavior not directly visible to supervisor level.
sireg — Supervisor Indirect Register Aliassireg2 — Supervisor Indirect Register Alias 2sireg3 — Supervisor Indirect Register Alias 3sireg4 — Supervisor Indirect Register Alias 4sireg5 — Supervisor Indirect Register Alias 5sireg6 — Supervisor Indirect Register Alias 6siselect — Supervisor Indirect Register Selectvsireg — Virtual Supervisor Indirect Register Aliasvsireg2 — Virtual Supervisor Indirect Register Alias 2vsireg3 — Virtual Supervisor Indirect Register Alias 3vsireg4 — Virtual Supervisor Indirect Register Alias 4vsireg5 — Virtual Supervisor Indirect Register Alias 5vsireg6 — Virtual Supervisor Indirect Register Alias 6vsiselect — Virtual Supervisor Indirect Register SelectVersion af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.