From 7fcc429612af4fa01b9a36c95883a82790b6460e Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 4 Jul 2023 19:32:58 +0100 Subject: [PATCH] aht --- src/ext/decode.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/ext/decode.rs b/src/ext/decode.rs index 96c39fa..60840e7 100644 --- a/src/ext/decode.rs +++ b/src/ext/decode.rs @@ -75,7 +75,6 @@ pub union GenInstruction { trait Instruction { fn match_inst(&self, inst: rv32::Word) -> bool; - fn decode(&self); fn step(&self, inst: rv32::Word, state: &mut cpu::CPU); } @@ -83,40 +82,24 @@ type SomeInstruction = impl Instruction; #[derive(Copy, Clone)] struct ADDI; -impl ADDI { - fn new() -> ADDI { - ADDI - } -} impl Instruction for ADDI { 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) { } } #[derive(Copy, Clone)] struct ADD; -impl ADD { - fn new() -> ADD { - ADD - } -} impl Instruction for ADD { fn match_inst(&self, inst: rv32::Word) -> bool { match_mask!(inst, "0000000xxxxxxxxxxx000xxxx0110011") } - fn decode(&self) { - } - fn step(&self, inst: rv32::Word, state: &mut cpu::CPU) { } }