You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excuse me ,I am a new hand, and the particularity of SIE confuses me a lot.
Could me tell me why read/write SIE register is different from other register?
/// Load a value from a CSR.
pub fn load_csr(&self, addr: usize) -> u64 {
match addr {
SIE => self.csrs[MIE] & self.csrs[MIDELEG],
_ => self.csrs[addr],
}
}
/// Store a value to a CSR.
pub fn store_csr(&mut self, addr: usize, value: u64) {
match addr {
SIE => {
self.csrs[MIE] =
(self.csrs[MIE] & !self.csrs[MIDELEG]) | (value & self.csrs[MIDELEG]);
}
_ => self.csrs[addr] = value,
}
}
The text was updated successfully, but these errors were encountered:
Excuse me ,I am a new hand, and the particularity of SIE confuses me a lot.
Could me tell me why read/write SIE register is different from other register?
The text was updated successfully, but these errors were encountered: