HLV.WU
Hypervisor Load Word Unsigned
HLV.WU rd, (rs1)
Hypervisor virtual-machine load: loads a word from a guest virtual address using two-stage translation.
Encoding
Binary Layout
011010000001
31:20
rs1
19:15
100
14:12
rd
11:7
1110011
6:0
Operands
-
rd
Destination register -
rs1
Guest virtual address
Example
HLV.WU t0, (a0)
Related
More in H
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
HLV.WU loads a word from the address in rs1, zero-extends it to XLEN (RV64 only) and writes it to rd. The access is to a guest virtual address, translated in two stages (VS-stage then G-stage), with effective privilege VU when hstatus.SPVP=0 and VS when SPVP=1; sstatus.SUM is ignored. Valid in M-mode or HS-mode, or in U-mode when hstatus.HU=1; when V=1 it raises a virtual-instruction exception. Not valid on RV32.
Operation
R[rd] = zext(GuestMem[rs1][31:0]);