From 27ea45d66f2358c1dcc8400a600f5e4ed8a419a1 Mon Sep 17 00:00:00 2001 From: Katy Feng Date: Mon, 24 Apr 2023 12:30:14 -0700 Subject: [PATCH] Change to common header file not applicable to open-vm-tools. --- open-vm-tools/lib/include/x86cpuid.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/open-vm-tools/lib/include/x86cpuid.h b/open-vm-tools/lib/include/x86cpuid.h index 425507142..77911fbea 100644 --- a/open-vm-tools/lib/include/x86cpuid.h +++ b/open-vm-tools/lib/include/x86cpuid.h @@ -2150,6 +2150,16 @@ CPUID_MODEL_IS_ALDERLAKE(uint32 v) // IN: %eax from CPUID with %eax=1. CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_ALDERLAKE_9A); } +static INLINE Bool +CPUID_MODEL_IS_RAPTORLAKE(uint32 v) // IN: %eax from CPUID with %eax=1. +{ + /* Assumes the CPU manufacturer is Intel. */ + return CPUID_FAMILY_IS_P6(v) && + (CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_RAPTORLAKE_B7 || + CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_RAPTORLAKE_BF || + CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_RAPTORLAKE_BA); +} + static INLINE Bool CPUID_UARCH_IS_HASWELL(uint32 v) // IN: %eax from CPUID with %eax=1. -- 2.47.3