summaryrefslogtreecommitdiff
path: root/src/controller.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/controller.cc
parent5beea0c476101ec7b122f3b2181d92ce096492fb (diff)
Fix issue where decode would overwrite raw bits while in use
Diffstat (limited to 'src/controller.cc')
-rw-r--r--src/controller.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controller.cc b/src/controller.cc
index e439b30..190d3e2 100644
--- a/src/controller.cc
+++ b/src/controller.cc
@@ -32,6 +32,7 @@ Controller::Controller(Stage *stage, Storage *storage, bool is_pipelined)
this->checked_out = {};
this->gprs = {0};
this->vrs.fill({0});
+ this->vrs.at(0).fill(1); // constant 1 vector register
this->gprs.at(2) = MEM_WORDS; // set the stack pointer
}