riscv, bpf: Unify 32-bit sign-extension to emit_sextw
authorPu Lehui <pulehui@huawei.com>
Mon, 15 Jan 2024 13:12:30 +0000 (13:12 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 29 Jan 2024 15:25:32 +0000 (16:25 +0100)
commite33758f7493c9ad8cf6960bcf7c70f5761f3acfb
treedcc00029047295dfcb3f8be9454ac90b444c1a30
parentad57654053805bf9a62602aaec74cc78edb6f235
riscv, bpf: Unify 32-bit sign-extension to emit_sextw

For code unification, add emit_sextw wrapper to unify all the 32-bit
sign-extension operations.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/bpf/20240115131235.2914289-2-pulehui@huaweicloud.com
arch/riscv/net/bpf_jit.h
arch/riscv/net/bpf_jit_comp64.c