[PATCH] riscv: probes: simulate c.jal instruction

Nam Cao namcao at linutronix.de
Thu Jun 25 21:11:14 PDT 2026


Xiaofeng Yuan <xiaofengmian at 163.com> writes:
> Add simulate_c_jal() which saves the return address to x1 (ra)
> and sets the program counter to the target offset, matching
> the behavior of c.j (which is already simulated) plus the
> link register write that distinguishes c.jal from c.j.

Please reuse the existing c.j simulation to reduce code duplication.

Nam



More information about the linux-riscv mailing list