From 5c96429584484a6ce88cb5a0432582e57ee9e211 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 15 Apr 2011 15:33:39 -0700 Subject: [PATCH] [sim] fixed jalr immediate bug --- riscv/insns/jalr_c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2