summaryrefslogtreecommitdiff
path: root/src/controller.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-27 23:26:40 -0400
committerbd <bdunahu@operationnull.com>2025-04-27 23:26:40 -0400
commita5366c56469bdec480c7eb463f9f71d7a3e3b2d2 (patch)
tree0e66c059b00e66297d4bd06a553b4721ff9eacc0 /src/controller.cc
parentb50cb7048275f5b9255dea7f3ac1362aaa09fe83 (diff)
Fix push/pop instruction
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 a84126d..a5c6691 100644
--- a/src/controller.cc
+++ b/src/controller.cc
@@ -31,6 +31,7 @@ Controller::Controller(Stage *stage, Storage *storage, bool is_pipelined)
this->pc = 0x0;
this->checked_out = {};
this->gprs = {0};
+ this->vrs.fill({0});
this->gprs.at(2) = MEM_WORDS; // set the stack pointer
}