]> 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)
commit7be60fe84a70e1340877f5a4589739e1b363cde8
tree7344f14004c621956f904ad2620c8cd9d906f295
parente594f1543b271d675a5310764bc478cfd1a33789
arm64: bpf: add 'shift by register' instructions

Commit 034f9859f259 ("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 034f9859f259.

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