diff options
author | bd <bdunahu@operationnull.com> | 2025-04-22 23:55:32 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-22 23:55:32 -0400 |
commit | 263a5d86e0b1acde39523bdd9a49521752255c72 (patch) | |
tree | 9267d91cf1624a9fc092d5f2f5ddc05cc2716129 /inc | |
parent | 302bbdc7ac18cd355f9f081cae202f5434427262 (diff) |
Remove 'type' field out of InstrDTO
Diffstat (limited to 'inc')
-rw-r--r-- | inc/id.h | 2 | ||||
-rw-r--r-- | inc/instr.h | 2 | ||||
-rw-r--r-- | inc/instrDTO.h | 5 |
3 files changed, 1 insertions, 8 deletions
@@ -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. */ |