HLV.B
Hypervisor Load Byte
HLV.B rd, (rs1)
Hypervisor virtual-machine load: loads a byte from a guest virtual address using two-stage translation.
Encoding
Binary Layout
011000000000
31:20
rs1
19:15
100
14:12
rd
11:7
1110011
6:0
Operands
-
rd
Destination register -
rs1
Guest virtual address
Example
HLV.B x10, (x11)
// Read byte from guest memory.
Related
More in H
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
HLV.B loads a byte from the address in rs1, sign-extends it to XLEN 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.
Operation
R[rd] = sext(GuestMem[R[rs1]][7:0]);