Skip to content

Commit 3c086ce

Browse files
sm00thmpe
authored andcommitted
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
1 parent 20ce0c2 commit 3c086ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/powerpc/net/bpf_jit_comp64.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,9 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, u32 *fimage, struct code
10651065
case BPF_JMP | BPF_JA:
10661066
PPC_JMP(addrs[i + 1 + off]);
10671067
break;
1068+
case BPF_JMP32 | BPF_JA:
1069+
PPC_JMP(addrs[i + 1 + imm]);
1070+
break;
10681071

10691072
case BPF_JMP | BPF_JGT | BPF_K:
10701073
case BPF_JMP | BPF_JGT | BPF_X:

0 commit comments

Comments
 (0)