Changeset 8034 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 16, 2008 12:58:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r8033 r8034 2752 2752 { 2753 2753 /* It's fixed, just skip the mapping. */ 2754 const unsigned cPTs = pMapping->cb >> SHW_PD_SHIFT;2754 const unsigned cPTs = pMapping->cb >> GST_PD_SHIFT; 2755 2755 iPD += cPTs - 1; 2756 pPDEDst += cPTs ;2756 pPDEDst += cPTs + (PGM_GST_TYPE != PGM_SHW_TYPE) * cPTs; /* Only applies to the pae shadow and 32 bits guest case */ 2757 2757 pMapping = pMapping->CTXALLSUFF(pNext); 2758 2758 iPdNoMapping = pMapping ? pMapping->GCPtr >> GST_PD_SHIFT : ~0U; … … 2902 2902 && !defined(PGM_WITHOUT_MAPPINGS) 2903 2903 2904 const unsigned cPTs = pMapping->cb >> SHW_PD_SHIFT; /* needed below to skip the mapping */2904 const unsigned cPTs = pMapping->cb >> GST_PD_SHIFT; 2905 2905 2906 2906 Assert(pgmMapAreMappingsEnabled(&pVM->pgm.s)); … … 2918 2918 */ 2919 2919 iPdNoMapping = ~0U; 2920 unsigned iPT = pMapping->cb >> GST_PD_SHIFT;2920 unsigned iPT = cPTs; 2921 2921 while (iPT-- > 1) 2922 2922 { … … 2957 2957 /* advance. */ 2958 2958 iPD += cPTs - 1; 2959 pPDEDst += cPTs; 2959 pPDEDst += cPTs + (PGM_GST_TYPE != PGM_SHW_TYPE) * cPTs; /* Only applies to the pae shadow and 32 bits guest case */ 2960 # if PGM_GST_TYPE != PGM_SHW_TYPE 2961 AssertCompile(PGM_GST_TYPE == PGM_TYPE_32BIT && PGM_SHW_TYPE == PGM_TYPE_PAE); 2962 # endif 2960 2963 # else /* PGM_GST_TYPE != PGM_TYPE_32BIT && PGM_GST_TYPE != PGM_TYPE_PAE && PGM_WITHOUT_MAPPINGS */ 2961 2964 Assert(!pgmMapAreMappingsEnabled(&pVM->pgm.s));
Note:
See TracChangeset
for help on using the changeset viewer.