Changeset 31870 in vbox for trunk/src/VBox/VMM/PGMGstDefs.h
- Timestamp:
- Aug 23, 2010 3:42:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMGstDefs.h
r31849 r31870 47 47 #undef GST_PDPT_MASK 48 48 #undef GST_PDPE_PG_MASK 49 #undef GST_GET_PTE_GCPHYS 49 50 #undef GST_GET_PDE_GCPHYS 50 51 #undef GST_GET_BIG_PDE_GCPHYS … … 106 107 # endif 107 108 # endif 108 # define GST_GET_PTE_SHW_FLAGS(pVCpu, Pte) (true && This_should_perhaps_not_be_used_in_this_context) //?? 109 # define GST_GET_PTE_GCPHYS(Pte) ((Pte).u & GST_PTE_PG_MASK) 110 # define GST_GET_PDE_GCPHYS(Pde) (true && This_should_perhaps_not_be_used_in_this_context) //?? 111 # define GST_GET_BIG_PDE_GCPHYS(Pde) (true && This_should_perhaps_not_be_used_in_this_context) //?? 112 # define GST_GET_PTE_SHW_FLAGS(pVCpu, Pte) ((Pte).u & (X86_PTE_P | X86_PTE_RW | X86_PTE_US | X86_PTE_A | X86_PTE_D | X86_PTE_G)) /**< @todo Could return P|RW|US|A|D here without consulting the PTE. */ 109 113 # define GST_GET_PDE_SHW_FLAGS(pVCpu, Pde) (true && This_should_perhaps_not_be_used_in_this_context) //?? 110 114 # define GST_GET_BIG_PDE_SHW_FLAGS(pVCpu, Pde) (true && This_should_perhaps_not_be_used_in_this_context) //?? … … 134 138 # define GST_PDE_PG_MASK X86_PDE_PG_MASK 135 139 # define GST_PDE_BIG_PG_MASK X86_PDE4M_PG_MASK 140 # define GST_GET_PTE_GCPHYS(Pte) ((Pte).u & GST_PDE_PG_MASK) 136 141 # define GST_GET_PDE_GCPHYS(Pde) ((Pde).u & GST_PDE_PG_MASK) 137 142 # define GST_GET_BIG_PDE_GCPHYS(pVM, Pde) pgmGstGet4MBPhysPage(&(pVM)->pgm.s, Pde) … … 173 178 # define GST_PDE_PG_MASK X86_PDE_PAE_PG_MASK_FULL 174 179 # define GST_PDE_BIG_PG_MASK X86_PDE2M_PAE_PG_MASK 175 # define GST_GET_PDE_GCPHYS(Pde) ((Pde).u & X86_PDE_PAE_PG_MASK_FULL) 180 # define GST_GET_PTE_GCPHYS(Pte) ((Pte).u & GST_PTE_PG_MASK) 181 # define GST_GET_PDE_GCPHYS(Pde) ((Pde).u & GST_PDE_PG_MASK) 176 182 # define GST_GET_BIG_PDE_GCPHYS(pVM, Pde) ((Pde).u & GST_PDE_BIG_PG_MASK) 177 183 # define GST_GET_PTE_SHW_FLAGS(pVCpu, Pte) ((Pte).u & (pVCpu)->pgm.s.fGst64ShadowedPteMask )
Note:
See TracChangeset
for help on using the changeset viewer.