Implement ECALL and EBREAK, the final RV64I instructions!

This commit is contained in:
2025-12-27 21:47:22 +01:00
parent 5c008bfc04
commit 8024af6b13
4 changed files with 29 additions and 1 deletions

View File

@@ -31,6 +31,15 @@ pub enum ExceptionType {
HardwareError = 19,
}
impl ExceptionType {
pub fn with_no_value(self) -> Exception {
Exception {
type_: self,
value: 0,
}
}
}
#[derive(Debug, Clone, Copy)]
pub struct Exception {
pub type_: ExceptionType,