From 2ff74b1652753681cc5b2893be4fa9f5e75a2a31 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 18 Oct 2018 23:17:49 +0100 Subject: [PATCH] c_jalr --- riscv/insns/c_jalr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2