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

@@ -93,4 +93,9 @@ impl Instruction {
pub fn funct6(self) -> u8 {
(self.0 >> 26 & 0x3f) as u8
}
/// Mostly/only used for the SYSTEM opcode
pub fn funct12(self) -> u16 {
(self.0 >> 20) as u16
}
}