Skip to content

Commit c9083da

Browse files
wathsalavtmonjalo
authored andcommitted
eal/arm: describe CPU features in comments
Add descriptive comments to each Arm feature listed in rte_cpu_flag_t. Signed-off-by: Wathsala Vithanage <[email protected]> Reviewed-by: Honnappa Nagarahalli <[email protected]> Reviewed-by: Dhruv Tripathi <[email protected]>
1 parent 2f1a90f commit c9083da

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

lib/eal/arm/include/rte_cpuflags_64.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,76 @@
99
* Enumeration of all CPU features supported
1010
*/
1111
enum rte_cpu_flag_t {
12+
/* Floating point capability */
1213
RTE_CPUFLAG_FP = 0,
14+
15+
/* Arm Neon extension */
1316
RTE_CPUFLAG_NEON,
17+
18+
/* Generic timer event stream */
1419
RTE_CPUFLAG_EVTSTRM,
20+
21+
/* AES instructions */
1522
RTE_CPUFLAG_AES,
23+
24+
/* Polynomial multiply long instruction */
1625
RTE_CPUFLAG_PMULL,
26+
27+
/* SHA1 instructions */
1728
RTE_CPUFLAG_SHA1,
29+
30+
/* SHA2 instructions */
1831
RTE_CPUFLAG_SHA2,
32+
33+
/* CRC32 instruction */
1934
RTE_CPUFLAG_CRC32,
35+
36+
/*
37+
* LDADD, LDCLR, LDEOR, LDSET, LDSMAX, LDSMIN, LDUMAX, LDUMIN, CAS,
38+
* CASP, and SWP instructions
39+
*/
2040
RTE_CPUFLAG_ATOMICS,
41+
42+
/* Arm SVE extension */
2143
RTE_CPUFLAG_SVE,
44+
45+
/* Arm SVE2 extension */
2246
RTE_CPUFLAG_SVE2,
47+
48+
/* SVE-AES instructions */
2349
RTE_CPUFLAG_SVEAES,
50+
51+
/* SVE-PMULL instruction */
2452
RTE_CPUFLAG_SVEPMULL,
53+
54+
/* SVE bit permute instructions */
2555
RTE_CPUFLAG_SVEBITPERM,
56+
57+
/* SVE-SHA3 instructions */
2658
RTE_CPUFLAG_SVESHA3,
59+
60+
/* SVE-SM4 instructions */
2761
RTE_CPUFLAG_SVESM4,
62+
63+
/* CFINV, RMIF, SETF16, SETF8, AXFLAG, and XAFLAG instructions */
2864
RTE_CPUFLAG_FLAGM2,
65+
66+
/* FRINT32Z, FRINT32X, FRINT64Z, and FRINT64X instructions */
2967
RTE_CPUFLAG_FRINT,
68+
69+
/* SVE Int8 matrix multiplication instructions */
3070
RTE_CPUFLAG_SVEI8MM,
71+
72+
/* SVE FP32 floating-point matrix multiplication instructions */
3173
RTE_CPUFLAG_SVEF32MM,
74+
75+
/* SVE FP64 floating-point matrix multiplication instructions */
3276
RTE_CPUFLAG_SVEF64MM,
77+
78+
/* SVE BFloat16 instructions */
3379
RTE_CPUFLAG_SVEBF16,
80+
81+
/* 64 bit execution state of the Arm architecture */
3482
RTE_CPUFLAG_AARCH64,
3583

3684
/* WFET and WFIT instructions */

0 commit comments

Comments
 (0)