Skip to content

Commit 16c3245

Browse files
authored
Alter HLV/HSV/HLVX description to use effective privilege mode terminology (riscv#1890)
* Alter HLV/HSV/HLVX description to use effective privilege mode terminology * get rid of duplicate effective priv mode defn, fix line width
1 parent 3b9744f commit 16c3245

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/hypervisor.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,12 +1225,10 @@ include::images/wavedrom/hypv-virt-load-and-store.edn[]
12251225

12261226
The hypervisor virtual-machine load and store instructions are valid
12271227
only in M-mode or HS-mode, or in U-mode when `hstatus`.HU=1. Each
1228-
instruction performs an explicit memory access as though V=1; i.e., with
1229-
the address translation and protection, and the endianness, that apply
1230-
to memory accesses in either VS-mode or VU-mode. Field SPVP of `hstatus`
1231-
controls the privilege level of the access. The explicit memory access
1232-
is done as though in VU-mode when SPVP=0, and as though in VS-mode when
1233-
SPVP=1. As usual when V=1, two-stage address translation is applied, and
1228+
instruction performs an explicit memory access with an effective privilege mode
1229+
of VS or VU. The effective privilege mode of the explicit memory access is VU
1230+
when `hstatus`.SPVP=0, and VS when `hstatus`.SPVP=1. As usual for VS-mode and
1231+
VU-mode, two-stage address translation is applied, and
12341232
the HS-level `sstatus`.SUM is ignored. HS-level `sstatus`.MXR makes
12351233
execute-only pages readable by explicit loads for both stages of address translation
12361234
(VS-stage and G-stage), whereas `vsstatus`.MXR affects only the first

0 commit comments

Comments
 (0)