[PATCH v3 1/2] riscv: kprobes: simulate nop and c.nop instructions
Nam Cao
namcao at linutronix.de
Fri Oct 16 04:12:35 PDT 2026
Xiaofeng Yuan <yuanxiaofeng at eswincomputing.com> writes:
> +/*
> + * NOP and C.NOP have no variable fields, so all bits must match.
> + * NOP is encoded as ADDI x0, x0, 0 (0x00000013), C.NOP as C.ADDI x0, 0 (0x0001).
> + */
I don't think we need this comment. The other similar macros have no
explanation, and this information can be found in the riscv
specification.
With that removed:
Reviewed-by: Nam Cao <namcao at linutronix.de>
More information about the linux-riscv
mailing list