Changeset 93943 in vbox
- Timestamp:
- Feb 24, 2022 9:15:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r93725 r93943 2394 2394 * @param pCache Cache structure pointer 2395 2395 * @param GCPhys GC physical address 2396 * @param pb HCHC pointer corresponding to physical page2396 * @param pbR3 HC pointer corresponding to physical page 2397 2397 * 2398 2398 * @thread EMT. … … 2404 2404 Assert(VM_IS_EMT(pVM)); 2405 2405 2406 GCPhys = PHYS_PAGE_ADDRESS(GCPhys);2407 pbR3 = (uint8_t *) PAGE_ADDRESS(pbR3);2406 GCPhys &= ~(RTGCPHYS)GUEST_PAGE_OFFSET_MASK; 2407 pbR3 = (uint8_t *)((uintptr_t)pbR3 & ~(uintptr_t)GUEST_PAGE_OFFSET_MASK); 2408 2408 2409 2409 iCacheIndex = ((GCPhys >> GUEST_PAGE_SHIFT) & PGM_MAX_PHYSCACHE_ENTRIES_MASK);
Note:
See TracChangeset
for help on using the changeset viewer.