HSV.B
Hypervisor Store Byte
HSV.B rs2, (rs1)
Hypervisor virtual-machine store: stores a byte to a guest virtual address using two-stage translation.
Encoding
Binary Layout
0110001
31:25
rs2
24:20
rs1
19:15
100000001110011
14:0
Operands
-
rs2
Source register -
rs1
Guest virtual address
Example
HSV.B x10, (x11)
// Write byte to guest memory.
Related
More in H
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
HSV.B stores the least-significant byte 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]][7:0] = R[rs2][7:0];