fn is_s1p9_mstatus_sv39_mode() -> bool {
    let mut mstatus_bits: usize; 
    unsafe { asm!("csrr {}, mstatus", out(reg) mstatus_bits) };
    let mode = (mstatus_bits >> 24) & 0b1_1111;
    mode == 9
}
// read Privileged Spec v1.9 defined mstatus to decide virtual memory mode
// 9 -> Sv39
read Privileged Spec v1.9 defined mstatus to decide virtual memory mode
9 -> Sv39
read Privileged Spec v1 . 9 defined mstatus to decide virtual memory mode 9 - > Sv39
fn is_s1p9_mstatus_sv39_mode() -> bool {
    let mut mstatus_bits: usize; 
    unsafe { asm!("csrr {}, mstatus", out(reg) mstatus_bits) };
    let mode = (mstatus_bits >> 24) & 0b1_1111;
    mode == 9
}
fn is_s1p9_mstatus_sv39_mode ( ) -> bool { let mut mstatus_bits : usize ; unsafe { asm ! ( " " out ( reg ) mstatus_bits ) } ; let mode = ( mstatus_bits >> 24 ) & 0b1_1111 ; mode == 9 }
read Privileged Spec v1.9 defined mstatus to decide virtual memory mode
9 -> Sv39
read Privileged Spec v1 . 9 defined mstatus to decide virtual memory mode 9 - > Sv39