- Timestamp:
- Aug 13, 2008 6:56:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r11311 r11407 880 880 # elif PGM_SHW_TYPE == PGM_TYPE_PAE 881 881 const unsigned iPDDst = GCPtrPage >> SHW_PD_SHIFT; /* no mask; flat index into the 2048 entry array. */ 882 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT); 882 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT); NOREF(iPdpte); 883 883 PX86PDEPAE pPdeDst = &pVM->pgm.s.CTXMID(ap,PaePDs[0])->a[iPDDst]; 884 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); 885 # else /* AMD64 */884 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); NOREF(pPdptDst); 885 # else /* PGM_SHW_TYPE == PGM_TYPE_AMD64 */ 886 886 /* PML4 */ 887 887 AssertReturn(pVM->pgm.s.pHCPaePML4, VERR_INTERNAL_ERROR); … … 915 915 } 916 916 917 # endif 917 # endif /* PGM_SHW_TYPE == PGM_TYPE_AMD64 */ 918 918 919 919 const SHWPDE PdeDst = *pPdeDst; … … 931 931 const unsigned iPDSrc = GCPtrPage >> GST_PD_SHIFT; 932 932 GSTPDE PdeSrc = pPDSrc->a[iPDSrc]; 933 # else 933 # else /* PGM_GST_TYPE != PGM_TYPE_32BIT */ 934 934 unsigned iPDSrc; 935 935 # if PGM_GST_TYPE == PGM_TYPE_PAE … … 946 946 else 947 947 PdeSrc.u = 0; 948 # endif 948 # endif /* PGM_GST_TYPE != PGM_TYPE_32BIT */ 949 949 950 950 # if PGM_GST_TYPE == PGM_TYPE_AMD64 … … 1066 1066 PGM_INVL_GUEST_TLBS(); 1067 1067 } 1068 # endif /* PGM_GST_TYPE != PGM_TYPE_AMD64 */1068 # endif /* PGM_GST_TYPE == PGM_TYPE_AMD64 */ 1069 1069 1070 1070 # if PGM_GST_TYPE == PGM_TYPE_PAE … … 1514 1514 # elif PGM_SHW_TYPE == PGM_TYPE_PAE 1515 1515 const unsigned iPDDst = GCPtrPage >> SHW_PD_SHIFT; 1516 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT); 1517 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); 1516 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT); NOREF(iPdpte); /* no mask; flat index into the 2048 entry array. */ 1517 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); NOREF(pPdptDst); 1518 1518 X86PDEPAE PdeDst = pVM->pgm.s.CTXMID(ap,PaePDs)[0]->a[iPDDst]; 1519 1519 # elif PGM_SHW_TYPE == PGM_TYPE_AMD64 … … 1783 1783 # elif PGM_SHW_TYPE == PGM_TYPE_AMD64 1784 1784 const unsigned iPDDst = ((GCPtrPage >> SHW_PD_SHIFT) & SHW_PD_MASK); 1785 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64; 1785 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64; NOREF(iPdpte); 1786 1786 PX86PDPAE pPDDst; 1787 1787 X86PDEPAE PdeDst; … … 2227 2227 # elif PGM_SHW_TYPE == PGM_TYPE_PAE 2228 2228 const unsigned iPDDst = GCPtrPage >> SHW_PD_SHIFT; /* no mask; flat index into the 2048 entry array. */ 2229 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT); 2230 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); 2229 const unsigned iPdpte = (GCPtrPage >> X86_PDPT_SHIFT); NOREF(iPdpte); 2230 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); NOREF(pPdptDst); 2231 2231 PX86PDPAE pPDDst = pVM->pgm.s.CTXMID(ap,PaePDs)[0]; 2232 2232 # elif PGM_SHW_TYPE == PGM_TYPE_AMD64 … … 3131 3131 PX86PDEPAE pPDEDst = &pPDPAE->a[iPdpte * X86_PG_PAE_ENTRIES]; 3132 3132 PGSTPD pPDSrc = pgmGstGetPaePDPtr(&pVM->pgm.s, iPdpte << X86_PDPT_SHIFT, &iPDSrc); 3133 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); 3133 PX86PDPT pPdptDst = pVM->pgm.s.CTXMID(p,PaePDPT); NOREF(pPdptDst); 3134 3134 X86PDPE PdpeSrc = CTXSUFF(pVM->pgm.s.pGstPaePDPT)->a[iPdpte]; 3135 3135
Note:
See TracChangeset
for help on using the changeset viewer.