aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2021-09-08 10:31:03 -0700
committerDavid Faust <david.faust@oracle.com>2021-09-10 09:06:58 -0700
commitfb88bf9931f17d137eb50c001e1c924aa1e34e83 (patch)
tree688ffb104fc9c823d27c40efb82bdd4eb697ebc9 /gcc/doc
parentae1cce71fa689e3991317fcf2bbceecf3b72ea9e (diff)
downloadgcc-fb88bf9931f17d137eb50c001e1c924aa1e34e83.zip
gcc-fb88bf9931f17d137eb50c001e1c924aa1e34e83.tar.gz
gcc-fb88bf9931f17d137eb50c001e1c924aa1e34e83.tar.bz2
doc: document BPF -mcpu and related options
This commit adds documentation for the new BPF options -mcpu, -mjmpext, -mjmp32, and -malu32. gcc/ChangeLog: * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32 options.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi39
1 files changed, 38 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index b08a5eb..23cc68f 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -904,7 +904,8 @@ Objective-C and Objective-C++ Dialects}.
@emph{eBPF Options}
@gccoptlist{-mbig-endian -mlittle-endian -mkernel=@var{version}
--mframe-limit=@var{bytes} -mxbpf -mco-re -mno-co-re}
+-mframe-limit=@var{bytes} -mxbpf -mco-re -mno-co-re
+-mjmpext -mjmp32 -malu32 -mcpu=@var{version}}
@emph{FR30 Options}
@gccoptlist{-msmall-model -mno-lsim}
@@ -22671,6 +22672,42 @@ Generate code for a big-endian target.
@opindex mlittle-endian
Generate code for a little-endian target. This is the default.
+@item -mjmpext
+@opindex mjmpext
+Enable generation of extra conditional-branch instructions.
+Enabled for CPU v2 and above.
+
+@item -mjmp32
+@opindex mjmp32
+Enable 32-bit jump instructions. Enabled for CPU v3 and above.
+
+@item -malu32
+@opindex malu32
+Enable 32-bit ALU instructions. Enabled for CPU v3 and above.
+
+@item -mcpu=@var{version}
+@opindex mcpu
+This specifies which version of the eBPF ISA to target. Newer versions
+may not be supported by all kernels. The default is @samp{v3}.
+
+Supported values for @var{version} are:
+
+@table @samp
+@item v1
+The first stable eBPF ISA with no special features or extensions.
+
+@item v2
+Supports the jump extensions, as in @option{-mjmpext}.
+
+@item v3
+All features of v2, plus:
+@itemize @minus
+@item 32-bit jump operations, as in @option{-mjmp32}
+@item 32-bit ALU operations, as in @option{-malu32}
+@end itemize
+
+@end table
+
@item -mco-re
@opindex mco-re
Enable BPF Compile Once - Run Everywhere (CO-RE) support. Requires and