[*] Win XP -> 8: CpuInfo::pCoreTopology fix

This commit is contained in:
Reece Wilson 2023-07-13 22:42:08 +01:00
parent c4806f8e81
commit 654cc8fe04

View File

@ -237,7 +237,8 @@ namespace Aurora::HWInfo
gCpuInfo.maskPCores.Add(idx);
idx++;
}
gCpuInfo.pCoreTopology.push_back(mask);
gCpuInfo.pCoreTopology.push_back(serverId);
}
}
@ -290,6 +291,7 @@ namespace Aurora::HWInfo
CpuBitId coreId;
coreId.lower = mask;
gCpuInfo.coreTopology.push_back(coreId);
gCpuInfo.pCoreTopology.push_back(coreId);
}
}
else
@ -314,6 +316,7 @@ namespace Aurora::HWInfo
CpuBitId coreId;
coreId.lower = maskC;
gCpuInfo.coreTopology.push_back(coreId);
gCpuInfo.pCoreTopology.push_back(coreId);
}
gCpuInfo.uCores = gCpuInfo.uThreads / 2;