aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_jalr.h
blob: cb1e4222dcd38829bb65f1c0e8e2073ecdb3c47c (plain)
1
2
3
4
5
require_extension('C');
require(insn.rvc_rs1() != 0);
reg_t tmp = npc;
set_pc(RVC_RS1 & ~reg_t(1));
WRITE_REG(X_RA, tmp);