From: Andrew Waterman Date: Thu, 8 Aug 2013 03:13:33 +0000 (-0700) Subject: Ignore JALR's effective address LSB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0af18ed449fb433ae5fce1cf8eb5e1e25ae9190;p=riscv-isa-sim.git Ignore JALR's effective address LSB --- 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);