]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: bpf: add 'shift by register' instructions
authorZi Shen Lim <zlim.lnx@gmail.com>
Tue, 16 Sep 2014 18:37:35 +0000 (19:37 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 20 Oct 2014 16:47:03 +0000 (17:47 +0100)
commit05516cd44cc9b52671c0a4887729b0768dbac4cf
tree7344f14004c621956f904ad2620c8cd9d906f295
parent3aba6f9dd5f9a5e45b7b4f2aa12a97fde557b9c8
arm64: bpf: add 'shift by register' instructions

Commit 31e7e4742fba ("bpf: x86: add missing 'shift by register'
instructions to x64 eBPF JIT") noted support for 'shift by register'
in eBPF and added support for it for x64. Let's enable this for arm64
as well.

The arm64 eBPF JIT compiler now passes the new 'shift by register'
test case introduced in the same commit 31e7e4742fba.

Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/net/bpf_jit.h
arch/arm64/net/bpf_jit_comp.c