mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 08:58:32 -05:00
powerpc64/bpf: jit support for 32bit offset jmp instruction
Add jit support for JMP32_JA instruction. Tested using test_bpf module. Signed-off-by: Artem Savkov <asavkov@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240517075650.248801-2-asavkov@redhat.com
This commit is contained in:
committed by
Michael Ellerman
parent
20ce0c247b
commit
3c086ce222
@@ -1065,6 +1065,9 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, u32 *fimage, struct code
|
||||
case BPF_JMP | BPF_JA:
|
||||
PPC_JMP(addrs[i + 1 + off]);
|
||||
break;
|
||||
case BPF_JMP32 | BPF_JA:
|
||||
PPC_JMP(addrs[i + 1 + imm]);
|
||||
break;
|
||||
|
||||
case BPF_JMP | BPF_JGT | BPF_K:
|
||||
case BPF_JMP | BPF_JGT | BPF_X:
|
||||
|
||||
Reference in New Issue
Block a user