summaryrefslogtreecommitdiff
path: root/inc/stage.h
diff options
context:
space:
mode:
authorSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-04-27 21:09:27 -0400
committerSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-04-27 21:09:27 -0400
commitb50cb7048275f5b9255dea7f3ac1362aaa09fe83 (patch)
tree9cf8726f40232d9f8114d7963867e3b5f18b27d1 /inc/stage.h
parent4f77c3161128ff965b26f9575853c5347c0d662d (diff)
Bug fixes
Diffstat (limited to 'inc/stage.h')
-rw-r--r--inc/stage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/stage.h b/inc/stage.h
index 4e0c252..a5d7fe6 100644
--- a/inc/stage.h
+++ b/inc/stage.h
@@ -136,6 +136,8 @@ class Stage
if (v < 0 || v >= GPR_NUM) {
throw std::out_of_range("Invalid GPR index");
}
+ cout << "dereference_register: " << v << endl;
+ cout << "gprs[v]: " << gprs[v] << endl;
return gprs[v];
}
else if constexpr (std::is_same_v<T, std::array<signed int, V_R_LIMIT>>) {
@@ -188,4 +190,4 @@ class Stage
Response status;
};
-#endif /* STAGE_H_INCLUDED */
+#endif /* STAGE_H_INCLUDED */ \ No newline at end of file