[PATCH] riscv, bpf: try RVC for reg move within BPF_CMPXCHG JIT

Björn Töpel bjorn at kernel.org
Tue May 21 09:35:39 PDT 2024


Xiao Wang <xiao.w.wang at intel.com> writes:

> We could try to emit compressed insn for reg move operation during CMPXCHG
> JIT, the instruction compression has no impact on the jump offsets of
> following forward and backward jump instructions.

...and at some point we should start supporting Zacas and friends,
instead of lr/sc.

> Signed-off-by: Xiao Wang <xiao.w.wang at intel.com>

Acked-by: Björn Töpel <bjorn at kernel.org>



More information about the linux-riscv mailing list