diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-04-22 15:23:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 15:23:50 -0400 |
commit | 3d0133c2f793e82d7519d8e2c5023114cd0f0eab (patch) | |
tree | b262ededf7e993090d7a860b76ca528b5651c3c6 /src/sim/wb.cc | |
parent | 1250359dfcbcad18c0a1078290f95479aa23e26a (diff) | |
parent | 86a6253a2fb2d016a63e57d6a5e5461df87668e5 (diff) |
Merge pull request #67 from bdunahu/bdunahu
add RET instruction, JAL ob1 error (full subroutine support), condition codes for everything but shifts
Diffstat (limited to 'src/sim/wb.cc')
-rw-r--r-- | src/sim/wb.cc | 2 |
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(); |