pub enum RiscVArch {
Rv32,
Rv64,
Rv128,
}Expand description
Selects the register width because decoding and word-result rules depend on XLEN.
XLEN is the width of an integer register and a guest address calculation. RV32 uses 32 bits.
RV64 uses 64 bits, and RV128 uses 128 bits. Some instruction encodings have a
different meaning at different XLEN values, especially compressed and *W instructions.
The runtime currently requests RV64 only. RV32 and the draft RV128 path expose incomplete
decoder work, and NNIL values and addresses remain u64.
Variants§
Rv32
Uses 32-bit integer registers and address calculations.
Rv64
Uses 64-bit integer registers and address calculations.
Rv128
Selects the draft 128-bit decode rules, which the current NNIL cannot represent fully.
Trait Implementations§
impl Copy for RiscVArch
impl Eq for RiscVArch
impl StructuralPartialEq for RiscVArch
Auto Trait Implementations§
impl Freeze for RiscVArch
impl RefUnwindSafe for RiscVArch
impl Send for RiscVArch
impl Sync for RiscVArch
impl Unpin for RiscVArch
impl UnsafeUnpin for RiscVArch
impl UnwindSafe for RiscVArch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more