HLV.W

Hypervisor Load Word

HLV.W rd, (rs1)

Hypervisor virtual-machine load: loads a word from a guest virtual address using two-stage translation.

Encoding

Binary Layout
011010000000
31:20
rs1
19:15
100
14:12
rd
11:7
1110011
6:0
 
Format R-Type (System)
Opcode 0x68004073
Extension H

Operands

  • rd
    Destination register
  • rs1
    Guest virtual address

Example

HLV.W x10, (x11)

// Read word from guest memory.

Related

More in H

Description

HLV.W loads a word 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]][31:0]);