Webcentive RISC-V Reference

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

FieldBitsTypeDescription
MODERV32 31 / RV64 63-60RW-R

Translation Mode

Controls the current translation mode according to the table below.

ValueNameDescription
0BareNo translation -> virtual address == physical address When Sv39 is implemented:
8Sv3939-bit virtual address translation When Sv48 is implemented:
9Sv4848-bit virtual address translation When Sv57 is implemented:
10Sv5757-bit virtual address translation

Any other value shall be ignored on a write.

ASIDRV32 30-22 / RV64 59-44RW-R

Address Space ID

PPNRV32 21-0 / RV64 43-0RW-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