[*] (654cc8fe cont) Win XP -> 8: CpuInfo::maskAllCores fix

This commit is contained in:
Reece Wilson 2023-07-14 18:30:21 +01:00
parent 788dde684b
commit f919452bc4

View File

@ -214,6 +214,7 @@ namespace Aurora::HWInfo
CpuBitId serverId;
serverId.lower = mask;
gCpuInfo.coreTopology.push_back(serverId);
gCpuInfo.maskAllCores.Add(serverId);
auto uThreadsInCore = AuPopCnt(mask);
gCpuInfo.uThreads += uThreadsInCore;
@ -240,7 +241,6 @@ namespace Aurora::HWInfo
gCpuInfo.pCoreTopology.push_back(serverId);
}
}
else if (sysinfo[i].Relationship == RelationProcessorPackage)
{
@ -292,6 +292,7 @@ namespace Aurora::HWInfo
coreId.lower = mask;
gCpuInfo.coreTopology.push_back(coreId);
gCpuInfo.pCoreTopology.push_back(coreId);
gCpuInfo.maskAllCores.Add(coreId);
}
}
else
@ -317,6 +318,7 @@ namespace Aurora::HWInfo
coreId.lower = maskC;
gCpuInfo.coreTopology.push_back(coreId);
gCpuInfo.pCoreTopology.push_back(coreId);
gCpuInfo.maskAllCores.Add(coreId);
}
gCpuInfo.uCores = gCpuInfo.uThreads / 2;