Changeset 54760 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 13, 2015 8:53:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r54737 r54760 1270 1270 uint32_t *pEax, uint32_t *pEbx, uint32_t *pEcx, uint32_t *pEdx) 1271 1271 { 1272 bool fExactSubLeafHit;1273 PVM pVM = pVCpu->CTX_SUFF(pVM);1274 PC PUMCPUIDLEAF pLeaf = cpumCpuIdGetLeafEx(pVM, uLeaf, uSubLeaf, &fExactSubLeafHit);1272 bool fExactSubLeafHit; 1273 PVM pVM = pVCpu->CTX_SUFF(pVM); 1274 PCCPUMCPUIDLEAF pLeaf = cpumCpuIdGetLeafEx(pVM, uLeaf, uSubLeaf, &fExactSubLeafHit); 1275 1275 if (pLeaf) 1276 1276 { 1277 AssertMsg(pLeaf->uLeaf == uLeaf, ("%#x\n", pLeaf->uLeaf, uLeaf)); 1277 1278 if (fExactSubLeafHit) 1278 1279 { … … 1291 1292 /* Bits 31-24: Initial APIC ID */ 1292 1293 Assert(pVCpu->idCpu <= 255); 1293 Assert ((*pEbx >> 24) == 0); /* raw-mode assumption */1294 *pEbx = ( *pEbx & UINT32_C(0x00ffffff)) | (pVCpu->idCpu << 24);1294 AssertMsg((pLeaf->uEbx >> 24) == 0, ("%#x\n", pLeaf->uEbx)); /* raw-mode assumption */ 1295 *pEbx = (pLeaf->uEbx & UINT32_C(0x00ffffff)) | (pVCpu->idCpu << 24); 1295 1296 } 1296 1297 else if (uLeaf == 0xb) 1297 1298 { 1298 1299 /* EDX: Initial extended APIC ID. */ 1299 Assert (*pEdx == 0); /* raw-mode assumption */1300 AssertMsg(pLeaf->uEdx == 0, ("%#x\n", pLeaf->uEdx)); /* raw-mode assumption */ 1300 1301 *pEdx = pVCpu->idCpu; 1301 1302 } … … 1303 1304 { 1304 1305 /* EAX: Initial extended APIC ID. */ 1305 Assert (*pEax == 0); /* raw-mode assumption */1306 AssertMsg(pLeaf->uEax == 0, ("%#x\n", pLeaf->uEax)); /* raw-mode assumption */ 1306 1307 *pEax = pVCpu->idCpu; 1307 1308 }
Note:
See TracChangeset
for help on using the changeset viewer.