diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2022-02-14 16:11:36 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-03-08 00:04:57 +1100 |
commit | bafb5898de5d2f15133774cb049fe55720b9c92f (patch) | |
tree | 00217148bf0329443964ffedc62ebad5c5bb2048 /arch/powerpc/net/bpf_jit_comp.c | |
parent | acd7408d2748533d767387cb4308692fba543658 (diff) | |
download | linux-bafb5898de5d2f15133774cb049fe55720b9c92f.tar.gz linux-bafb5898de5d2f15133774cb049fe55720b9c92f.tar.bz2 linux-bafb5898de5d2f15133774cb049fe55720b9c92f.zip |
powerpc/bpf: Emit a single branch instruction for known short branch ranges
PPC_BCC() emits two instructions to accommodate scenarios where we need
to branch outside the range of a conditional branch. PPC_BCC_SHORT()
emits a single branch instruction and can be used when the branch is
known to be within a conditional branch range.
Convert some of the uses of PPC_BCC() in the powerpc BPF JIT over to
PPC_BCC_SHORT() where we know the branch range.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/edbca01377d1d5f472868bf6d8962b0a0d85b96f.1644834730.git.naveen.n.rao@linux.vnet.ibm.com
Diffstat (limited to 'arch/powerpc/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions