@@ -10,15 +10,15 @@ use crate::arch::asm;
10
10
/// This operation is not available under RV32 base instruction set.
11
11
///
12
12
/// This function is unsafe for it accesses the virtual supervisor or user via a `HLV.WU`
13
- /// instruction which is effectively an unreference to any memory address.
13
+ /// instruction which is effectively a dereference to any memory address.
14
14
#[ inline]
15
15
pub unsafe fn hlv_wu ( src : * const u32 ) -> u32 {
16
16
let value: u32 ;
17
17
asm ! ( ".insn i 0x73, 0x4, {}, {}, 0x681" , out( reg) value, in( reg) src, options( readonly, nostack) ) ;
18
18
value
19
19
}
20
20
21
- /// Loads virtual machine memory by unsigned double integer
21
+ /// Loads virtual machine memory by double integer
22
22
///
23
23
/// This instruction performs an explicit memory access as though `V=1`;
24
24
/// i.e., with the address translation and protection, and the endianness, that apply to memory
@@ -27,7 +27,7 @@ pub unsafe fn hlv_wu(src: *const u32) -> u32 {
27
27
/// This operation is not available under RV32 base instruction set.
28
28
///
29
29
/// This function is unsafe for it accesses the virtual supervisor or user via a `HLV.D`
30
- /// instruction which is effectively an unreference to any memory address.
30
+ /// instruction which is effectively a dereference to any memory address.
31
31
#[ inline]
32
32
pub unsafe fn hlv_d ( src : * const i64 ) -> i64 {
33
33
let value: i64 ;
@@ -42,7 +42,7 @@ pub unsafe fn hlv_d(src: *const i64) -> i64 {
42
42
/// accesses in either VS-mode or VU-mode.
43
43
///
44
44
/// This function is unsafe for it accesses the virtual supervisor or user via a `HSV.D`
45
- /// instruction which is effectively an unreference to any memory address.
45
+ /// instruction which is effectively a dereference to any memory address.
46
46
#[ inline]
47
47
pub unsafe fn hsv_d ( dst : * mut i64 , src : i64 ) {
48
48
asm ! ( ".insn r 0x73, 0x4, 0x37, x0, {}, {}" , in( reg) dst, in( reg) src, options( nostack) ) ;
0 commit comments