From 8e76c0b4258bbe9c1299f987078258835e09cb3b Mon Sep 17 00:00:00 2001 From: shimmybalsam <38699071+shimmybalsam@users.noreply.github.com> Date: Wed, 21 Dec 2022 07:45:52 +0200 Subject: [PATCH] UTIL: add amd milan to cpu family (#699) --- src/utils/arch/x86_64/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utils/arch/x86_64/cpu.c b/src/utils/arch/x86_64/cpu.c index 622284664b..84abc3fd0d 100644 --- a/src/utils/arch/x86_64/cpu.c +++ b/src/utils/arch/x86_64/cpu.c @@ -161,6 +161,14 @@ ucc_cpu_model_t ucc_arch_get_cpu_model() return UCC_CPU_MODEL_AMD_ROME; } } + + if (family == 0x19) { + switch (model) { + case 0x00: + case 0x01: + return UCC_CPU_MODEL_AMD_MILAN; + } + } } return UCC_CPU_MODEL_UNKNOWN;