Changeset 28 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jan 15, 2007 4:48:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r23 r28 197 197 } 198 198 unsigned idx = (off >> PGM_DYNAMIC_CHUNK_SHIFT); 199 *pHCPtr = (RTHCPTR)((RTHCUINTPTR)CTXSUFF(pRam->p vHCChunk)[idx] + (off & PGM_DYNAMIC_CHUNK_OFFSET_MASK));199 *pHCPtr = (RTHCPTR)((RTHCUINTPTR)CTXSUFF(pRam->pavHCChunk)[idx] + (off & PGM_DYNAMIC_CHUNK_OFFSET_MASK)); 200 200 return VINF_SUCCESS; 201 201 } … … 236 236 for (unsigned iChunk = 0; iChunk < (pRam->cb >> PGM_DYNAMIC_CHUNK_SHIFT); iChunk++) 237 237 { 238 if (CTXSUFF(pRam->p vHCChunk)[iChunk])239 { 240 RTHCUINTPTR off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)CTXSUFF(pRam->p vHCChunk)[iChunk];238 if (CTXSUFF(pRam->pavHCChunk)[iChunk]) 239 { 240 RTHCUINTPTR off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)CTXSUFF(pRam->pavHCChunk)[iChunk]; 241 241 if (off < PGM_DYNAMIC_CHUNK_SIZE) 242 242 return true; … … 277 277 for (unsigned iChunk = 0; iChunk < (pRam->cb >> PGM_DYNAMIC_CHUNK_SHIFT); iChunk++) 278 278 { 279 if (CTXSUFF(pRam->p vHCChunk)[iChunk])280 { 281 RTHCUINTPTR off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)CTXSUFF(pRam->p vHCChunk)[iChunk];279 if (CTXSUFF(pRam->pavHCChunk)[iChunk]) 280 { 281 RTHCUINTPTR off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)CTXSUFF(pRam->pavHCChunk)[iChunk]; 282 282 if (off < PGM_DYNAMIC_CHUNK_SIZE) 283 283 { … … 325 325 for (unsigned iChunk = 0; iChunk < (pRam->cb >> PGM_DYNAMIC_CHUNK_SHIFT); iChunk++) 326 326 { 327 if (CTXSUFF(pRam->p vHCChunk)[iChunk])328 { 329 RTHCUINTPTR off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)CTXSUFF(pRam->p vHCChunk)[iChunk];327 if (CTXSUFF(pRam->pavHCChunk)[iChunk]) 328 { 329 RTHCUINTPTR off = (RTHCUINTPTR)HCPtr - (RTHCUINTPTR)CTXSUFF(pRam->pavHCChunk)[iChunk]; 330 330 if (off < PGM_DYNAMIC_CHUNK_SIZE) 331 331 { … … 459 459 unsigned idx = (iPage >> (PGM_DYNAMIC_CHUNK_SHIFT - PAGE_SHIFT)); 460 460 461 *pHCPtr = (RTHCPTR)((RTHCUINTPTR)CTXSUFF(pRam->p vHCChunk)[idx] + ((iPage << PAGE_SHIFT) & PGM_DYNAMIC_CHUNK_OFFSET_MASK) + off);461 *pHCPtr = (RTHCPTR)((RTHCUINTPTR)CTXSUFF(pRam->pavHCChunk)[idx] + ((iPage << PAGE_SHIFT) & PGM_DYNAMIC_CHUNK_OFFSET_MASK) + off); 462 462 } 463 463 else
Note:
See TracChangeset
for help on using the changeset viewer.