diff options
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(); |