VirtualBox

Changeset 20127 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 28, 2009 3:48:56 PM (16 years ago)
Author:
vboxsync
Message:

Cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r20126 r20127  
    11881188    if (PdeSrc.n.u1Present)
    11891189    {
     1190# ifndef PGM_WITHOUT_MAPPING
    11901191        if (PdeDst.u & PGM_PDFLAGS_MAPPING)
    11911192        {
     
    11991200            pgmUnlock(pVM);
    12001201        }
    1201         else if (   PdeSrc.n.u1User != PdeDst.n.u1User
     1202        else
     1203# endif /* !PGM_WITHOUT_MAPPING */
     1204             if (   PdeSrc.n.u1User != PdeDst.n.u1User
    12021205                 || (!PdeSrc.n.u1Write && PdeDst.n.u1Write))
    12031206        {
     
    33383341}
    33393342
    3340 
    3341 #if PGM_GST_TYPE == PGM_TYPE_32BIT || PGM_GST_TYPE == PGM_TYPE_PAE || PGM_GST_TYPE == PGM_TYPE_AMD64
    3342 # if PGM_SHW_TYPE == PGM_TYPE_32BIT || PGM_SHW_TYPE == PGM_TYPE_PAE || PGM_SHW_TYPE == PGM_TYPE_AMD64
    3343 /**
    3344  * Figures out which kind of shadow page this guest PDE warrants.
    3345  *
    3346  * @returns Shadow page kind.
    3347  * @param   pPdeSrc     The guest PDE in question.
    3348  * @param   cr4         The current guest cr4 value.
    3349  */
    3350 DECLINLINE(PGMPOOLKIND) PGM_BTH_NAME(CalcPageKind)(const GSTPDE *pPdeSrc, uint32_t cr4)
    3351 {
    3352 #  if PMG_GST_TYPE == PGM_TYPE_AMD64
    3353     if (!pPdeSrc->n.u1Size)
    3354 #  else
    3355     if (!pPdeSrc->n.u1Size || !(cr4 & X86_CR4_PSE))
    3356 #  endif
    3357         return BTH_PGMPOOLKIND_PT_FOR_PT;
    3358     //switch (pPdeSrc->u & (X86_PDE4M_RW | X86_PDE4M_US /*| X86_PDE4M_PAE_NX*/))
    3359     //{
    3360     //    case 0:
    3361     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_RO;
    3362     //    case X86_PDE4M_RW:
    3363     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_RW;
    3364     //    case X86_PDE4M_US:
    3365     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_US;
    3366     //    case X86_PDE4M_RW | X86_PDE4M_US:
    3367     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_RW_US;
    3368 #  if 0
    3369     //    case X86_PDE4M_PAE_NX:
    3370     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_NX;
    3371     //    case X86_PDE4M_RW | X86_PDE4M_PAE_NX:
    3372     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_RW_NX;
    3373     //    case X86_PDE4M_US | X86_PDE4M_PAE_NX:
    3374     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_US_NX;
    3375     //    case X86_PDE4M_RW | X86_PDE4M_US | X86_PDE4M_PAE_NX:
    3376     //      return BTH_PGMPOOLKIND_PT_FOR_BIG_RW_US_NX;
    3377 #  endif
    3378             return BTH_PGMPOOLKIND_PT_FOR_BIG;
    3379     //}
    3380 }
    3381 # endif
    3382 #endif
    3383 
    33843343#undef MY_STAM_COUNTER_INC
    33853344#define MY_STAM_COUNTER_INC(a) do { } while (0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette