Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: add AMD EPYC cpu family details
[vpp.git]
/
src
/
vppinfra
/
cpu.h
diff --git
a/src/vppinfra/cpu.h
b/src/vppinfra/cpu.h
index
60439e0
..
29992bb
100644
(file)
--- a/
src/vppinfra/cpu.h
+++ b/
src/vppinfra/cpu.h
@@
-39,6
+39,10
@@
#define foreach_march_variant
#endif
+#define amd_vendor(t1, t2, t3) \
+ ((t1 == 0x68747541) && /* htuA */ \
+ (t2 == 0x444d4163) && /* DMAc */ \
+ (t3 == 0x69746e65)) /* itne */
typedef enum
{
CLIB_MARCH_VARIANT_TYPE = 0,