From 6a1a832346ab4b973de19e6d416703ff0fd6d1df Mon Sep 17 00:00:00 2001 From: Sivaprasad Tummala Date: Mon, 17 Apr 2023 05:16:11 -0700 Subject: vppinfra: add AMD EPYC cpu family details Type: feature - Added support for AMD EPYC processor family Change-Id: I60da87cca429117c209d240e5a5f3b4d9f4981d8 Signed-off-by: Sivaprasad Tummala --- src/vppinfra/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vppinfra/cpu.h') diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index 60439e0e3ca..29992bb11eb 100644 --- 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, -- cgit 1.2.3-korg