Skip to main content

## hlv_d

# Function hlv_d

Source

    pub unsafe fn hlv_d(src: *const i64) -> i64

🔬This is a nightly-only experimental API. (`riscv_ext_intrinsics` #114544)
Available on RISC-V RV64 only.
Expand description

Loads virtual machine memory by double integer

This instruction performs an explicit memory access as though `V=1`; i.e., with the address translation and protection, and the endianness, that apply to memory accesses in either VS-mode or VU-mode.

This operation is not available under RV32 base instruction set.

This function is unsafe for it accesses the virtual supervisor or user via a `HLV.D` instruction which is effectively a dereference to any memory address.