From: Andrew Waterman Date: Fri, 15 Apr 2011 22:33:39 +0000 (-0700) Subject: [sim] fixed jalr immediate bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c96429584484a6ce88cb5a0432582e57ee9e211;p=riscv-isa-sim.git [sim] fixed jalr immediate bug --- diff --git a/riscv/insns/jalr_c.h b/riscv/insns/jalr_c.h index ab8ed45..536ebbf 100644 --- a/riscv/insns/jalr_c.h +++ b/riscv/insns/jalr_c.h @@ -1,3 +1,3 @@ -reg_t temp = npc + SIMM; -npc = RS1; +reg_t temp = npc; +npc = RS1 + SIMM; RD = temp;