[PATCH v4] riscv: probes: simulate c.jal instruction
Nam Cao
namcao at linutronix.de
Sat Jun 27 04:04:05 PDT 2026
Xiaofeng Yuan <xiaofengmian at 163.com> writes:
> The c.jal instruction is currently marked REJECTED in kprobes
> instruction decoding, but it should be SIMULATED like other
> compressed jump instructions.
>
> Add simulate_c_jal() which saves the return address to RA and
> sets the program counter to the target offset, reusing
> simulate_c_j for the common jump logic.
>
> Signed-off-by: Xiaofeng Yuan <xiaofengmian at 163.com>
Reviewed-by: Nam Cao <namcao at linutronix.de>
Tested-by: Nam Cao <namcao at linutronix.de>
More information about the linux-riscv
mailing list