aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_jr.h
blob: c5162e93fecc865251ad10841658b686de4e6c87 (plain)
1
2
3
4
5
6
7
require_extension(EXT_ZCA);
require(insn.rvc_rs1() != 0);
set_pc(RVC_RS1 & ~reg_t(1));

if (ZICFILP_xLPE(STATE.v, STATE.prv)) {
  STATE.elp = ZICFILP_IS_LP_EXPECTED(insn.rvc_rs1());
}