Changeset 7598 in vbox for trunk/src/VBox/VMM/PGMPhys.h
- Timestamp:
- Mar 27, 2008 4:08:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.h
r5999 r7598 41 41 else 42 42 if ( ASMBitTest(&pVM->pgm.s.pgmphysreadcache.aEntries, (iCacheIndex = ((GCPhys >> PAGE_SHIFT) & PGM_MAX_PHYSCACHE_ENTRIES_MASK))) 43 && pVM->pgm.s.pgmphysreadcache.Entry[iCacheIndex].GCPhys == P AGE_ADDRESS(GCPhys) /** @todo r=bird: wrong macro. You don't want an uintptr_t! */43 && pVM->pgm.s.pgmphysreadcache.Entry[iCacheIndex].GCPhys == PHYS_PAGE_ADDRESS(GCPhys) 44 44 #if PGMPHYS_DATASIZE != 1 45 && P AGE_ADDRESS(GCPhys) ==PAGE_ADDRESS(GCPhys + sizeof(PGMPHYS_DATATYPE) - 1) /** (GCPhys & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(PGMPHYS_DATATYPE) */45 && PHYS_PAGE_ADDRESS(GCPhys) == PHYS_PAGE_ADDRESS(GCPhys + sizeof(PGMPHYS_DATATYPE) - 1) /** (GCPhys & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(PGMPHYS_DATATYPE) */ 46 46 #endif 47 47 ) … … 83 83 else 84 84 if ( ASMBitTest(&pVM->pgm.s.pgmphyswritecache.aEntries, (iCacheIndex = ((GCPhys >> PAGE_SHIFT) & PGM_MAX_PHYSCACHE_ENTRIES_MASK))) 85 && pVM->pgm.s.pgmphyswritecache.Entry[iCacheIndex].GCPhys == P AGE_ADDRESS(GCPhys)85 && pVM->pgm.s.pgmphyswritecache.Entry[iCacheIndex].GCPhys == PHYS_PAGE_ADDRESS(GCPhys) 86 86 #if PGMPHYS_DATASIZE != 1 87 && P AGE_ADDRESS(GCPhys) ==PAGE_ADDRESS(GCPhys + sizeof(val) - 1)87 && PHYS_PAGE_ADDRESS(GCPhys) == PHYS_PAGE_ADDRESS(GCPhys + sizeof(val) - 1) 88 88 #endif 89 89 )
Note:
See TracChangeset
for help on using the changeset viewer.