summaryrefslogtreecommitdiff
path: root/src/sim/wb.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-21 23:00:25 -0400
committerbd <bdunahu@operationnull.com>2025-04-21 23:00:25 -0400
commitcf8f181af044141f754404c1174bc3317a123d93 (patch)
tree866234fe4b367959f566e947c1395ea317559500 /src/sim/wb.cc
parent98b9786ccab6fdee37a779fdd55b58176abf12d9 (diff)
add RET instruction
Diffstat (limited to 'src/sim/wb.cc')
-rw-r--r--src/sim/wb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/wb.cc b/src/sim/wb.cc
index fbbdd4c..0348b51 100644
--- a/src/sim/wb.cc
+++ b/src/sim/wb.cc
@@ -62,7 +62,7 @@ void WB::jump_handler()
{
if (this->curr_instr->get_s1() > 0) {
if (this->curr_instr->get_mnemonic() == JAL)
- this->gprs[1] = this->pc + 1;
+ this->gprs[1] = this->curr_instr->get_pc() + 1;;
this->pc = this->curr_instr->get_s1();
this->checked_out = {};
this->next->squash();