Changeset 9606 in vbox for trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
- Timestamp:
- Jun 11, 2008 12:25:36 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31923
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r9575 r9606 194 194 195 195 if ( !Pde.b.u1Size 196 || !(CPUMGetGuestCR4(pVM) & X86_CR4_PSE)) 196 # if PGM_GST_TYPE != PGM_TYPE_AMD64 197 || !(CPUMGetGuestCR4(pVM) & X86_CR4_PSE) 198 # endif 199 ) 197 200 { 198 201 PGSTPT pPT; … … 276 279 * Get the PD entry. 277 280 */ 278 # if PGM_GST_TYPE == PGM_TYPE_32BIT281 # if PGM_GST_TYPE == PGM_TYPE_32BIT 279 282 PX86PDE pPde = &CTXSUFF(pVM->pgm.s.pGuestPD)->a[GCPtr >> X86_PD_SHIFT]; 280 # elif PGM_GST_TYPE == PGM_TYPE_PAE283 # elif PGM_GST_TYPE == PGM_TYPE_PAE 281 284 /* pgmGstGetPaePDEPtr will return 0 if the PDPTE is marked as not present 282 285 * All the other bits in the PDPTE are only valid in long mode (r/w, u/s, nx) … … 286 289 if (!pPde) 287 290 return VERR_PAGE_TABLE_NOT_PRESENT; 288 # elif PGM_GST_TYPE == PGM_TYPE_AMD64291 # elif PGM_GST_TYPE == PGM_TYPE_AMD64 289 292 /** @todo Setting the r/w, u/s & nx bits might have no effect depending on the pdpte & pml4 values */ 290 293 PX86PDEPAE pPde = pgmGstGetLongModePDEPtr(&pVM->pgm.s, GCPtr); … … 292 295 if (!pPde) 293 296 return VERR_PAGE_TABLE_NOT_PRESENT; 294 # endif297 # endif 295 298 GSTPDE Pde = *pPde; 296 299 Assert(Pde.n.u1Present); … … 299 302 300 303 if ( !Pde.b.u1Size 301 || !(CPUMGetGuestCR4(pVM) & X86_CR4_PSE)) 304 # if PGM_GST_TYPE != PGM_TYPE_AMD64 305 || !(CPUMGetGuestCR4(pVM) & X86_CR4_PSE) 306 # endif 307 ) 302 308 { 303 309 /* … … 728 734 if (Pde.n.u1Present) 729 735 { 730 if (!Pde.b.u1Size || !(pState->cr4 & X86_CR4_PSE)) 736 if ( !Pde.b.u1Size 737 # if PGM_GST_TYPE != PGM_TYPE_AMD64 738 || !(pState->cr4 & X86_CR4_PSE) 739 # endif 740 ) 731 741 { 732 742 /*
Note:
See TracChangeset
for help on using the changeset viewer.