HSV.W

Hypervisor Store Word

HSV.W rs2, (rs1)

Hypervisor virtual-machine store: stores a word to a guest virtual address using two-stage translation.

Encoding

Binary Layout
0110101
31:25
rs2
24:20
rs1
19:15
100000001110011
14:0
 
Format R-Type (System)
Opcode 0x6A004073
Extension H

Operands

  • rs2
    Source register
  • rs1
    Guest virtual address

Example

HSV.W x10, (x11)

// Write word to guest memory.

Related

More in H

Description

HSV.W stores the least-significant word of rs2 to the address in rs1. 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

GuestMem[R[rs1]][31:0] = R[rs2][31:0];