Skip to content

Commit 9d9adde

Browse files
authored
Clarify that hgatp field zeroing is software's responsibility (riscv#1891)
Passive vs. active voice issue. See riscv-software-src/riscv-isa-sim#1928 (comment)
1 parent 9cfaf37 commit 9d9adde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hypervisor.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,10 @@ HSXLEN=32 and HSXLEN=64. When MODE=Bare, guest physical addresses are
834834
equal to supervisor physical addresses, and there is no further memory
835835
protection for a guest virtual machine beyond the physical memory
836836
protection scheme described in <<pmp>>. In this
837-
case, the remaining fields in `hgatp` must be set to zeros.
837+
case, software must write zero to the remaining fields in `hgatp`.
838+
Attempting to select MODE=Bare with a nonzero pattern in the remaining fields
839+
has an UNSPECIFIED effect on the value that the remaining fields assume and an
840+
UNSPECIFIED effect on G-stage address translation and protection behavior.
838841

839842
When HSXLEN=32, the only other valid setting for MODE is Sv32x4, which
840843
is a modification of the usual Sv32 paged virtual-memory scheme,

0 commit comments

Comments
 (0)