From 04d56387450889375a8ef0c213fb4b2b648f3f00 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 18 Sep 2019 10:17:34 +0800 Subject: [PATCH] Fix the second problem: The Extended Model ID needs to be examined only when the Family ID is 06H or 0FH Tracked-On:#3675 Signed-off-by: Andy --- hypervisor/arch/x86/cpu_caps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/cpu_caps.c b/hypervisor/arch/x86/cpu_caps.c index 24ca0b354..770e044f8 100644 --- a/hypervisor/arch/x86/cpu_caps.c +++ b/hypervisor/arch/x86/cpu_caps.c @@ -220,7 +220,7 @@ void init_pcpu_capabilities(void) boot_cpu_data.family = (uint8_t)family; model = (eax >> 4U) & 0xfU; - if (family >= 0x06U) { + if (family == 0x06U || family == 0xFU) { model += ((eax >> 16U) & 0xfU) << 4U; } boot_cpu_data.model = (uint8_t)model;