Changeset 6176 in vbox
- Timestamp:
- Dec 21, 2007 9:35:32 PM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r5999 r6176 4043 4043 PSUPGIPCPU pGipCpu; 4044 4044 4045 if (RT_LIKELY(iCpu < =RT_ELEMENTS(pGip->aCPUs)))4045 if (RT_LIKELY(iCpu < RT_ELEMENTS(pGip->aCPUs))) 4046 4046 { 4047 4047 pGipCpu = &pGip->aCPUs[iCpu]; -
trunk/src/VBox/VMM/CPUM.cpp
r6172 r6176 195 195 */ 196 196 for (i = 0; i < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdStd); i++) 197 ASMCpuId (i,197 ASMCpuId_Idx_ECX(i, 0, 198 198 &pCPUM->aGuestCpuIdStd[i].eax, &pCPUM->aGuestCpuIdStd[i].ebx, 199 199 &pCPUM->aGuestCpuIdStd[i].ecx, &pCPUM->aGuestCpuIdStd[i].edx); … … 1080 1080 " RAW Standard CPUIDs\n" 1081 1081 " Function eax ebx ecx edx\n"); 1082 for (unsigned i = 0; i < =ELEMENTS(pVM->cpum.s.aGuestCpuIdStd); i++)1082 for (unsigned i = 0; i < ELEMENTS(pVM->cpum.s.aGuestCpuIdStd); i++) 1083 1083 { 1084 1084 Guest = pVM->cpum.s.aGuestCpuIdStd[i]; 1085 ASMCpuId (i, &Host.eax, &Host.ebx, &Host.ecx, &Host.edx);1085 ASMCpuId_Idx_ECX(i, 0, &Host.eax, &Host.ebx, &Host.ecx, &Host.edx); 1086 1086 1087 1087 pHlp->pfnPrintf(pHlp, … … 1261 1261 " RAW Extended CPUIDs\n" 1262 1262 " Function eax ebx ecx edx\n"); 1263 for (unsigned i = 0; i < =ELEMENTS(pVM->cpum.s.aGuestCpuIdExt); i++)1263 for (unsigned i = 0; i < ELEMENTS(pVM->cpum.s.aGuestCpuIdExt); i++) 1264 1264 { 1265 1265 Guest = pVM->cpum.s.aGuestCpuIdExt[i]; … … 1548 1548 " RAW Centaur CPUIDs\n" 1549 1549 " Function eax ebx ecx edx\n"); 1550 for (unsigned i = 0; i < =RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdCentaur); i++)1550 for (unsigned i = 0; i < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdCentaur); i++) 1551 1551 { 1552 1552 Guest = pVM->cpum.s.aGuestCpuIdCentaur[i];
Note:
See TracChangeset
for help on using the changeset viewer.