From f0f773a1f2acc3030c89fc5aa6335f667987aa2a Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 10 May 2025 17:02:27 -0400 Subject: Fix issue where decode would overwrite raw bits while in use --- src/controller.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/controller.cc') 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 } -- cgit v1.2.3