Changeset 54674 in vbox for trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp
- Timestamp:
- Mar 6, 2015 6:02:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp
r54537 r54674 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 158 158 uint32_t uLeaf = g_aCpuidUnifyBits[i].uLeaf; 159 159 PCPUMCPUID pLegacyLeaf; 160 if (uLeaf < RT_ELEMENTS(pVM->cpum.s.aGuestCpuId Std))161 pLegacyLeaf = &pVM->cpum.s.aGuestCpuId Std[uLeaf];162 else if (uLeaf - UINT32_C(0x80000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuId Ext))163 pLegacyLeaf = &pVM->cpum.s.aGuestCpuId Ext[uLeaf - UINT32_C(0x80000000)];164 else if (uLeaf - UINT32_C(0xc0000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuId Centaur))165 pLegacyLeaf = &pVM->cpum.s.aGuestCpuId Centaur[uLeaf - UINT32_C(0xc0000000)];160 if (uLeaf < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmStd)) 161 pLegacyLeaf = &pVM->cpum.s.aGuestCpuIdPatmStd[uLeaf]; 162 else if (uLeaf - UINT32_C(0x80000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmExt)) 163 pLegacyLeaf = &pVM->cpum.s.aGuestCpuIdPatmExt[uLeaf - UINT32_C(0x80000000)]; 164 else if (uLeaf - UINT32_C(0xc0000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmCentaur)) 165 pLegacyLeaf = &pVM->cpum.s.aGuestCpuIdPatmCentaur[uLeaf - UINT32_C(0xc0000000)]; 166 166 else 167 167 continue; … … 291 291 { 292 292 PCPUMCPUID pLegacyLeaf; 293 if (uLeaf < RT_ELEMENTS(pVM->cpum.s.aGuestCpuId Std))294 pLegacyLeaf = &pVM->cpum.s.aGuestCpuId Std[uLeaf];295 else if (uLeaf - UINT32_C(0x80000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuId Ext))296 pLegacyLeaf = &pVM->cpum.s.aGuestCpuId Ext[uLeaf - UINT32_C(0x80000000)];297 else if (uLeaf - UINT32_C(0xc0000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuId Centaur))298 pLegacyLeaf = &pVM->cpum.s.aGuestCpuId Centaur[uLeaf - UINT32_C(0xc0000000)];293 if (uLeaf < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmStd)) 294 pLegacyLeaf = &pVM->cpum.s.aGuestCpuIdPatmStd[uLeaf]; 295 else if (uLeaf - UINT32_C(0x80000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmExt)) 296 pLegacyLeaf = &pVM->cpum.s.aGuestCpuIdPatmExt[uLeaf - UINT32_C(0x80000000)]; 297 else if (uLeaf - UINT32_C(0xc0000000) < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmCentaur)) 298 pLegacyLeaf = &pVM->cpum.s.aGuestCpuIdPatmCentaur[uLeaf - UINT32_C(0xc0000000)]; 299 299 else 300 300 continue;
Note:
See TracChangeset
for help on using the changeset viewer.