]> www.infradead.org Git - users/willy/xarray.git/commit
riscv, bpf: Optimize zextw insn with Zba extension
authorXiao Wang <xiao.w.wang@intel.com>
Thu, 16 May 2024 09:04:30 +0000 (17:04 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 24 May 2024 14:53:12 +0000 (16:53 +0200)
commitc12603e76ef666ce5c51a9d6faf155c9e3de7601
tree82fb7b57e3cd4b398760b135b4a6c7e916e26037
parentecec1887e24f11a3fcc391aa0f33fe0802be0804
riscv, bpf: Optimize zextw insn with Zba extension

The Zba extension provides add.uw insn which can be used to implement
zext.w with rs2 set as ZERO.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Pu Lehui <pulehui@huawei.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/bpf/20240516090430.493122-1-xiao.w.wang@intel.com
arch/riscv/Kconfig
arch/riscv/net/bpf_jit.h