Can it execute in U-mode?
With H implemented: M/HS or V=0 U-mode with HU=1 may execute. V=0 U-mode with HU=0 raises illegal-instruction; V=1 raises virtual-instruction.
Hypervisor virtual-machine load of a zero-extended byte using VS/VU effective privilege and two-stage translation.
HLV.BU is the H-extension virtual-machine load corresponding to LBU. It reads an 8-bit value at the address in rs1 and zero-extends it to XLEN; the instruction has no immediate offset. It is valid only in M-mode, HS-mode, or U-mode with hstatus.HU=1. The explicit access uses VU effective privilege when hstatus.SPVP=0 and VS effective privilege when SPVP=1, with VS-stage and G-stage translation.
Shows HLV.BU SYSTEM decoding, privilege checks, two-stage translation, and zero-extended writeback without modeling page walks or TLB implementation.
Assumes H is implemented, relevant privilege modes use the same XLEN, and pointer masking is disabled. Input is an assembled memory value; the selector supplies the access outcome without validating page tables. rs1=x0 fixes address zero. Steps are teaching stages, not processor cycles.
This animation shows only official architectural conditions and outcomes; page walks, TLBs, caches, and platform exception handling are not modeled.
HLV.BU reads 8 bits at rs1, zero-extends to XLEN into rd.
Understand this scenario with real code like «# RV64; H 扩展 / H extension; HS-mode, SPVP=0; pointer masking disabled # x11=0x40001000; VS/G-stage access succeeds # 8-bit memory value = 0x80 hlv.bu x10, (x11) # x10 = 0x0000000000000080».
Understand this scenario with real code like «# RV64; H 扩展 / H extension; HS-mode, SPVP=0; pointer masking disabled # x11=0x40001000; VS/G-stage access succeeds # 8-bit memory value = 0x80 hlv.bu x10, (x11) # x10 = 0x0000000000000080».
Understand this scenario with real code like «# RV64; H 扩展 / H extension; HS-mode, SPVP=0; pointer masking disabled # x11=0x40001000; VS/G-stage access succeeds # 8-bit memory value = 0x80 hlv.bu x10, (x11) # x10 = 0x0000000000000080».
With H implemented: M/HS or V=0 U-mode with HU=1 may execute. V=0 U-mode with HU=0 raises illegal-instruction; V=1 raises virtual-instruction.
rs1=x0 supplies zero. With rd=rs1, read the address before writeback. rd=x0 retains exceptions and side effects.