Struct rsim::processor::elements::cheri::registers::CheriRV64RegisterFile[][src]

pub struct CheriRV64RegisterFile {
    regs: [SafeTaggedCap; 31],
}

Register file for 64-bit RISC-V that can hold tagged 128-bit capabilities.

Implements RegisterFile for capability-mode access, RegisterFile for integer-mode.

Fields

regs: [SafeTaggedCap; 31]

Implementations

impl CheriRV64RegisterFile[src]

pub fn read_u64(&mut self, idx: u8) -> Result<u64, RegisterFileError>[src]

pub fn write_u64(&mut self, idx: u8, val: u64) -> Result<(), RegisterFileError>[src]

pub fn read_maybe_cap(
    &mut self,
    idx: u8
) -> Result<SafeTaggedCap, RegisterFileError>
[src]

Reads a valid capability from the register file.

pub fn write_maybe_cap(
    &mut self,
    idx: u8,
    val: SafeTaggedCap
) -> Result<(), RegisterFileError>
[src]

pub fn dump(&self)[src]

pub fn reset(&mut self)[src]

Trait Implementations

impl Default for CheriRV64RegisterFile[src]

impl RegisterFile<SafeTaggedCap> for CheriRV64RegisterFile[src]

impl RegisterFile<u64> for CheriRV64RegisterFile[src]

Interface used by normal RV32 instructions

impl<'a> VecRegInterface<u64> for CheriRV64RegisterFile[src]

Auto Trait Implementations

impl RefUnwindSafe for CheriRV64RegisterFile

impl Send for CheriRV64RegisterFile

impl Sync for CheriRV64RegisterFile

impl Unpin for CheriRV64RegisterFile

impl UnwindSafe for CheriRV64RegisterFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.