Skip to content

Commit 33434d5

Browse files
committedMay 3, 2019
[Docs][CodeGenerator][eBPF] Correct the values for BPF_X and BPF_K
Fix the values of BPF_X and BPF_K according to BPFInstrFormats.td: " def BPF_K : BPFSrcType<0x0>; def BPF_X : BPFSrcType<0x1>; " The right value for BPF_X is 0x1, and the right value for BPF_K is 0x0. Signed-off-by: Wang YanQing <udknight@gmail.com> Differential Revision: https://reviews.llvm.org/D61512 llvm-svn: 359904
1 parent a8f3840 commit 33434d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎llvm/docs/CodeGenerator.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2527,8 +2527,8 @@ When BPF_CLASS(code) == BPF_ALU or BPF_ALU64 or BPF_JMP,
25272527

25282528
::
25292529

2530-
BPF_X 0x0 use src_reg register as source operand
2531-
BPF_K 0x1 use 32 bit immediate as source operand
2530+
BPF_X 0x1 use src_reg register as source operand
2531+
BPF_K 0x0 use 32 bit immediate as source operand
25322532

25332533
and four MSB bits store operation code
25342534

0 commit comments

Comments
 (0)
Please sign in to comment.