edit idk what but i changed something

This commit is contained in:
Benjamin Kyd
2023-06-23 01:08:27 +01:00
parent e773cfb784
commit 2720022e11

View File

@@ -75,10 +75,9 @@ pub union GenInstruction {
trait Instruction {
fn register(&self, ext: &mut Extension) where Self: Sized {
// ext.register(Box::new(self));
}
fn decode(&self);
fn match_inst(&self, inst: rv32::Word) -> bool;
fn decode(&self);
fn step(&self, inst: rv32::Word, state: &mut cpu::CPU);
}
@@ -90,14 +89,14 @@ impl ADDI {
}
}
impl Instruction for ADDI {
fn decode(&self) {
}
fn match_inst(&self, inst: rv32::Word) -> bool {
match_mask!(inst, "xxxxxxxxxxxxxxxxxx000xxxx0010011")
}
fn decode(&self) {
}
fn step(&self, inst: rv32::Word, state: &mut cpu::CPU) {
}
}