← Home

vsatp

Virtual Supervisor Address Translation and Protection

Address: 0x280 (640) · Privilege: VS · Length: VSXLEN · Writable · Defined by: H · Virtual address: 384

The `vsatp` register is a VSXLEN-bit read/write register that is VS-mode's version of supervisor register `satp`. When V=1, `vsatp` substitutes for the usual `satp`, so instructions that normally read or modify `satp` actually access `vsatp` instead. `vsatp` controls VS-stage address translation, the first stage of two-stage translation for guest virtual addresses.

The `vsatp` register is considered active for the purposes of the address-translation algorithm unless the effective privilege mode is U and `hstatus.HU`=0. However, even when `vsatp` is active, VS-stage page-table entries' A bits must not be set as a result of speculative execution, unless the effective privilege mode is VS or VU.

Note: In particular, virtual-machine load/store (`hlv`, 'hlvx', or 'hsv') instructions that are misspeculatively executed must not cause VS-stage A bits to be set.

When V=0, a write to `vsatp` with an unsupported MODE value is either ignored as it is for `satp`, or the fields of `vsatp` are treated as WARL in the normal way. However, when V=1, a write to `satp` with an unsupported MODE value is ignored and no write to `vsatp` is effected.

Fields

RV32

31:2423:1615:87:0
MODEASIDPPN

RV64

63:5655:4847:4039:3231:2423:1615:87:0
MODEASIDPPN
BitsFieldAliasDescriptionTypeReset
RV32 [31]
RV64 [63:60]
MODE*Translation Mode* Controls the current translation mode in VS-mode according to the table below. ! Value ! Name ! Description ! 0 ! Bare a! No translation -> virtual address == physical address ! 8 ! Sv39 ! 39-bit virtual address translation ! 9 ! Sv48 ! 48-bit virtual address translation ! 10 ! Sv57 ! 57-bit virtual address translation Any other value shall be ignored on a write.RW-RUNDEFINED_LEGAL
RV32 [30:22]
RV64 [59:44]
ASID*Address Space ID*RW-RUNDEFINED_LEGAL
RV32 [21:0]
RV64 [43:0]
PPN*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.RW-RUNDEFINED_LEGAL

Version 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.