From: Luke Kenneth Casson Leighton Date: Thu, 18 Oct 2018 22:17:04 +0000 (+0100) Subject: c_jal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9a8ee7ce96eb5b38184c7a52a006775f4352271;p=riscv-isa-sim.git c_jal --- diff --git a/riscv/insns/c_jal.h b/riscv/insns/c_jal.h index 4f156f6..ded03db 100644 --- a/riscv/insns/c_jal.h +++ b/riscv/insns/c_jal.h @@ -5,5 +5,5 @@ if (xlen == 32) { WRITE_REG(X_RA, tmp); } else { // c.addiw require(insn.rvc_rd() != 0); - WRITE_RD(sext32(RVC_RS1 + insn.rvc_imm())); + WRITE_RD(sext32(rv_add(RVC_RS1, insn.rvc_imm()))); }