eeric 0.0.2

An easily embeddable RV64I core with MFDV extensions
Documentation
#[derive(Clone)]
pub struct CsrRegisters([u64; 4096]);

impl CsrRegisters {
    pub fn new() -> Self {
        Self::default()
    }

    pub fn vxrm(&self) -> u64 {
        self[0x000a]
    }
}

impl Default for CsrRegisters {
    fn default() -> Self {
        Self([0; 4096])
    }
}

impl std::ops::Index<usize> for CsrRegisters {
    type Output = u64;

    fn index(&self, index: usize) -> &Self::Output {
        &self.0[index]
    }
}

impl std::ops::IndexMut<usize> for CsrRegisters {
    fn index_mut(&mut self, index: usize) -> &mut Self::Output {
        &mut self.0[index]
    }
}