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

From: Björn Töpel
Date: Tue May 21 2024 - 12:40:10 EST


Xiao Wang <xiao.w.wang@xxxxxxxxx> 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@xxxxxxxxx>

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@xxxxxxxxx/