satp
Supervisor address translation and protection
- Address
0x180- Group
- Supervisor-level CSRs
- Privilege
SRW(privileged spec CSR listing, Supervisor Protection and Translation)- Access
- read/write; lowest privilege S (supervisor)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Supervisor Address Translation and Protection
Privileged spec: Supervisor address translation and protection
Description
Controls the translation mode in (H)S-mode and U-mode, and holds the current ASID and page table base pointer.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MODE | RV32 31 / RV64 63-60 | RW-R | Translation Mode Controls the current translation mode according to the table below.
Any other value shall be ignored on a write. | |||||||||||||||
ASID | RV32 30-22 / RV64 59-44 | RW-R | Address Space ID | |||||||||||||||
PPN | RV32 21-0 / RV64 43-0 | RW-R | Physical Page Number The physical address of the active root page table is PPN << 12. Can only hold values that correspond to a valid page table base, which will be implementation-dependent. |
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/satp.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)