VirtualBox

Changeset 13685 in vbox


Ignore:
Timestamp:
Oct 30, 2008 6:59:39 PM (16 years ago)
Author:
vboxsync
Message:

DBGFMem.cpp: Just exclude the whole above 4GB & AMD64-paging checks if GC_ARCH_BITS == 32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFMem.cpp

    r13609 r13685  
    7575    else
    7676    {
    77         if (
    7877#if GC_ARCH_BITS > 32
    79                 (   pAddress->FlatPtr >= _4G
     78        if (    (   pAddress->FlatPtr >= _4G
    8079                 || pAddress->FlatPtr + cbRange > _4G)
    81             &&
    82 #endif
    83                 enmMode != PGMMODE_AMD64
     80            &&  enmMode != PGMMODE_AMD64
    8481            &&  enmMode != PGMMODE_AMD64_NX)
    8582            return VERR_DBGF_MEM_NOT_FOUND;
     83#endif
    8684        RTGCUINTPTR GCPtrHit;
    8785        rc = PGMR3DbgScanVirtual(pVM, pAddress->FlatPtr, cbRange, pabNeedle, cbNeedle, &GCPtrHit);
     
    157155    else
    158156    {
    159         if (
    160157#if GC_ARCH_BITS > 32
    161                 (   pAddress->FlatPtr >= _4G
     158        if (    (   pAddress->FlatPtr >= _4G
    162159                 || pAddress->FlatPtr + cbRead > _4G)
    163             &&
    164 #endif
    165                 enmMode != PGMMODE_AMD64
     160            &&  enmMode != PGMMODE_AMD64
    166161            &&  enmMode != PGMMODE_AMD64_NX)
    167162            return VERR_PAGE_TABLE_NOT_PRESENT;
     163#endif
    168164        rc = PGMPhysSimpleReadGCPtr(pVM, pvBuf, pAddress->FlatPtr, cbRead);
    169165    }
     
    226222    else
    227223    {
    228         if (
    229224#if GC_ARCH_BITS > 32
    230                 (   pAddress->FlatPtr >= _4G
     225        if (    (   pAddress->FlatPtr >= _4G
    231226                 || pAddress->FlatPtr + cchBuf > _4G)
    232             &&
    233 #endif
    234                 enmMode != PGMMODE_AMD64
     227            &&  enmMode != PGMMODE_AMD64
    235228            &&  enmMode != PGMMODE_AMD64_NX)
    236229            return VERR_PAGE_TABLE_NOT_PRESENT;
     230#endif
    237231        rc = PGMPhysSimpleReadGCPtr(pVM, pszBuf, pAddress->FlatPtr, cchBuf);
    238232    }
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