From 263a5d86e0b1acde39523bdd9a49521752255c72 Mon Sep 17 00:00:00 2001 From: bd Date: Tue, 22 Apr 2025 23:55:32 -0400 Subject: Remove 'type' field out of InstrDTO --- inc/id.h | 2 +- inc/instr.h | 2 -- inc/instrDTO.h | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) (limited to 'inc') diff --git a/inc/id.h b/inc/id.h index dabf206..39485b6 100644 --- a/inc/id.h +++ b/inc/id.h @@ -78,7 +78,7 @@ class ID : public Stage * @param the resulting third field, which varies per type. * @param the resulting mnemonic. */ - void get_instr_fields(signed int &s1, signed int &s2, signed int &s3, Mnemonic &m, Type &t); + void get_instr_fields(signed int &s1, signed int &s2, signed int &s3, Mnemonic &m); void decode_R_type(signed int &s1, signed int &s2, signed int &s3, Mnemonic &m); void decode_I_type(signed int &s1, signed int &s2, signed int &s3, Mnemonic &m); void decode_J_type(signed int &s1, signed int &s2, signed int &s3, Mnemonic &m); diff --git a/inc/instr.h b/inc/instr.h index 62af09a..85eae5b 100644 --- a/inc/instr.h +++ b/inc/instr.h @@ -62,8 +62,6 @@ enum Mnemonic { NOP, }; -enum Type { R, I, J, INV }; - namespace instr { // clang-format off diff --git a/inc/instrDTO.h b/inc/instrDTO.h index 7775b20..6ab14b2 100644 --- a/inc/instrDTO.h +++ b/inc/instrDTO.h @@ -48,11 +48,6 @@ struct InstrDTO { * The mnemonic of the instruction. */ Mnemonic mnemonic; - // TODO delete me - /** - * Type of the instruction - */ - Type type; /** * The register this instruction checks out. */ -- cgit v1.2.3