diff options
-rw-r--r-- | riscv/insns/jalr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/jalr.h b/riscv/insns/jalr.h index 91be911..6f17ab1 100644 --- a/riscv/insns/jalr.h +++ b/riscv/insns/jalr.h @@ -1,3 +1,3 @@ reg_t temp = RS1; RD = npc; -set_pc(temp + SIMM); +set_pc((temp + SIMM) & ~1); |