summaryrefslogtreecommitdiff
path: root/src/controller.cc
diff options
context:
space:
mode:
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
}