summaryrefslogtreecommitdiff
path: root/src/id.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-27 15:20:37 -0400
committerbd <bdunahu@operationnull.com>2025-04-27 15:20:37 -0400
commit64efd868deec8921eac16b181f3a2e6d29f90b99 (patch)
tree096c73c3e74a2afedabd85bd62dbb6720a365ed5 /src/id.cc
parent7aaa516c0de444c956dff88342a57e9313a19e34 (diff)
parent5653b2a033e7a4173d2f178b5ce52384666d3d7b (diff)
Merge remote-tracking branch 'origin/master' into vector_ext
Diffstat (limited to 'src/id.cc')
-rw-r--r--src/id.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/id.cc b/src/id.cc
index 1f0e62b..7398f49 100644
--- a/src/id.cc
+++ b/src/id.cc
@@ -65,7 +65,7 @@ void ID::write_vec_guard(signed int v, std::array<signed int, V_R_LIMIT> &vrs){
// keep track in the instrDTO for displaying to user and writeback
// keep track in checked_out so we can still access this information!
this->checked_out.push_back(v);
- this->curr_instr->checked_out = v;
+ this->curr_instr->checked_out = v;
}
vrs = this->dereference_register<std::array<signed int, V_R_LIMIT>>(v);
}
@@ -131,7 +131,7 @@ Response ID::set_vlen(){
this->curr_instr->slot_A = V_R_LIMIT;
} else {
this->curr_instr->slot_A = vlen_reg;
- }
+ }
}
return r;
}
@@ -223,7 +223,7 @@ void ID::decode_I_type(signed int &s1)
// vector value to be stored
r2 = this->read_vec_guard(s2,this->curr_instr->operands.load_store_vector.vector_register);
r3 = this->set_vlen();
-
+
this->status = (r1 == OK && r2 == OK && r3 == OK) ? OK : STALLED;
return;
case LOADV:
@@ -306,13 +306,3 @@ void ID::decode_J_type(signed int &s1)
}
}
-
-std::vector<int> ID::stage_info()
-{
- std::vector<int> info;
- if (this->curr_instr) {
- info.push_back(this->curr_instr->is_squashed);
- info.push_back(this->curr_instr->slot_A);
- }
- return info;
-}