Skip to content

Commit

Permalink
riscv, bpf: Add support for far branching
Browse files Browse the repository at this point in the history
This commit adds branch relaxation to the BPF JIT, and with that
support for far (offset greater than 12b) branching.

The branch relaxation requires more than two passes to converge. For
most programs it is three passes, but for larger programs it can be
more.

Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Luke Nelson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
bjoto authored and borkmann committed Dec 19, 2019
1 parent f1003b7 commit 7d1ef13
Showing 1 changed file with 188 additions and 164 deletions.
Loading

0 comments on commit 7d1ef13

Please sign in to comment.