From b0af18ed449fb433ae5fce1cf8eb5e1e25ae9190 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 7 Aug 2013 20:13:33 -0700 Subject: Ignore JALR's effective address LSB --- riscv/insns/jalr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1