diff options
author | Brendan Jackman <jackmanb@google.com> | 2021-01-14 19:17:43 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-01-15 03:34:28 +0100 |
commit | e5f02caccfae94f5baf6ec6dbb57ce8a7e9a40e7 (patch) | |
tree | 15667b52f0e208f3777fbf0973899d785685fa07 /arch/s390/net/bpf_jit_comp.c | |
parent | bpf: x86: Factor out emission of REX byte (diff) | |
download | linux-e5f02caccfae94f5baf6ec6dbb57ce8a7e9a40e7.tar.xz linux-e5f02caccfae94f5baf6ec6dbb57ce8a7e9a40e7.zip |
bpf: x86: Factor out a lookup table for some ALU opcodes
A later commit will need to lookup a subset of these opcodes. To
avoid duplicating code, pull out a table.
The shift opcodes won't be needed by that later commit, but they're
already duplicated, so fold them into the table anyway.
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210114181751.768687-4-jackmanb@google.com
Diffstat (limited to 'arch/s390/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions