Skip to content

Commit

Permalink
Fix the second problem: The Extended Model ID needs to be examined on…
Browse files Browse the repository at this point in the history
…ly when the Family ID is 06H or 0FH

Tracked-On:projectacrn#3675
Signed-off-by: Andy <andyx.liu@intel.com>
  • Loading branch information
Andy authored and junjiemao1 committed Sep 21, 2019
1 parent 147d51e commit 988c8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypervisor/arch/x86/cpu_caps.c
Expand Up @@ -172,7 +172,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;
Expand Down

0 comments on commit 988c8ae

Please sign in to comment.