summaryrefslogtreecommitdiff
path: root/src/id.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-10 17:02:27 -0400
committerbd <bdunahu@operationnull.com>2025-05-10 17:02:27 -0400
commitf0f773a1f2acc3030c89fc5aa6335f667987aa2a (patch)
treee3f27a3e6d78a9f15ce6fb1b6f3b40202aa5ab3e /src/id.cc
parent5beea0c476101ec7b122f3b2181d92ce096492fb (diff)
Fix issue where decode would overwrite raw bits while in use
Diffstat (limited to 'src/id.cc')
-rw-r--r--src/id.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/id.cc b/src/id.cc
index 43975fb..490b03a 100644
--- a/src/id.cc
+++ b/src/id.cc
@@ -49,7 +49,6 @@ void ID::get_instr_fields(signed int instr_bits)
this->decode_J_type(instr_bits);
break;
case 0b11:
- this->curr_instr->mnemonic = NOP;
this->status = OK;
}
@@ -79,9 +78,9 @@ Response ID::set_vlen()
vlen_reg = vlen_reg & 0xf;
if (r == OK) {
if (vlen_reg > V_R_LIMIT) {
- this->curr_instr->slot_A = V_R_LIMIT;
+ this->curr_instr->slot_B = V_R_LIMIT;
} else {
- this->curr_instr->slot_A = vlen_reg;
+ this->curr_instr->slot_B = vlen_reg;
}
}
return r;