From: Luke Kenneth Casson Leighton Date: Thu, 18 Oct 2018 22:17:49 +0000 (+0100) Subject: c_jalr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ff74b1652753681cc5b2893be4fa9f5e75a2a31;p=riscv-isa-sim.git c_jalr --- diff --git a/riscv/insns/c_jalr.h b/riscv/insns/c_jalr.h index cb1e422..5ee9e10 100644 --- a/riscv/insns/c_jalr.h +++ b/riscv/insns/c_jalr.h @@ -1,5 +1,5 @@ require_extension('C'); require(insn.rvc_rs1() != 0); reg_t tmp = npc; -set_pc(RVC_RS1 & ~reg_t(1)); +set_pc(rv_and(RVC_RS1, sv_reg_t(~reg_t(1)))); WRITE_REG(X_RA, tmp);