[PATCH] riscv, bpf: Introduce shift add helper with Zba optimization

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


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

> Zba extension is very useful for generating addresses that index into array
> of basic data types. This patch introduces sh2add and sh3add helpers for
> RV32 and RV64 respectively, to accelerate pointer array addressing.
>
> Signed-off-by: Xiao Wang <xiao.w.wang at intel.com>

This is dependent on [1], and given it hasn't been accepted yet, I'd
make this patch part of that series.


Björn

[1] https://lore.kernel.org/linux-riscv/20240516090430.493122-1-xiao.w.wang@intel.com/



More information about the linux-riscv mailing list