This time i swear

This commit is contained in:
Ben Kyd
2023-06-21 21:16:51 +01:00
parent 05e498e335
commit e773cfb784

View File

@@ -33,7 +33,7 @@ use crate::cpu;
#[derive(Debug)] #[derive(Debug)]
pub struct NullType { pub struct NullType {
pub opcode: B7, pub opcode: B7,
pub _undefined: B25, pub _unused: B25,
} }
// Arithmetic logic // Arithmetic logic
@@ -75,7 +75,7 @@ pub union GenInstruction {
trait Instruction { trait Instruction {
fn register(&self, ext: &mut Extension) where Self: Sized { fn register(&self, ext: &mut Extension) where Self: Sized {
ext.register(Box::new(self)); // ext.register(Box::new(self));
} }
fn decode(&self); fn decode(&self);
fn match_inst(&self, inst: rv32::Word) -> bool; fn match_inst(&self, inst: rv32::Word) -> bool;