VirtualBox

Changeset 10397 in vbox for trunk


Ignore:
Timestamp:
Jul 9, 2008 9:05:42 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33053
Message:

Wrong assertions and order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r10368 r10397  
    26002600    {
    26012601        case PGMPOOLKIND_ROOT_32BIT_PD:
    2602             Assert(!(u.pau32[pUser->iUser] & PGM_PDFLAGS_MAPPING));
    26032602            Assert(pUser->iUserTable < X86_PG_ENTRIES);
     2603            Assert(!(u.pau32[pUser->iUserTable] & PGM_PDFLAGS_MAPPING));
    26042604            break;
    26052605        case PGMPOOLKIND_ROOT_PAE_PD:
    2606             Assert(!(u.pau64[pUser->iUser] & PGM_PDFLAGS_MAPPING));
    26072606            Assert(pUser->iUserTable < 2048 && pUser->iUser == PGMPOOL_IDX_PAE_PD);
     2607            Assert(!(u.pau64[pUser->iUserTable] & PGM_PDFLAGS_MAPPING));
    26082608            break;
    26092609        case PGMPOOLKIND_ROOT_PDPT:
     2610            Assert(pUser->iUserTable < 4);
    26102611            Assert(!(u.pau64[pUser->iUserTable] & PGM_PLXFLAGS_PERMANENT));
    2611             Assert(pUser->iUserTable < 4);
    26122612            break;
    26132613        case PGMPOOLKIND_PAE_PD_FOR_32BIT_PD:
     
    26162616            break;
    26172617        case PGMPOOLKIND_64BIT_PD_FOR_64BIT_PD:
    2618             Assert(!(u.pau64[pUser->iUser] & PGM_PDFLAGS_MAPPING));
    26192618            Assert(pUser->iUserTable < X86_PG_PAE_ENTRIES);
     2619            Assert(!(u.pau64[pUser->iUserTable] & PGM_PDFLAGS_MAPPING));
    26202620            break;
    26212621        case PGMPOOLKIND_64BIT_PDPT_FOR_64BIT_PDPT:
     2622            Assert(pUser->iUserTable < X86_PG_PAE_ENTRIES);
    26222623            Assert(!(u.pau64[pUser->iUserTable] & PGM_PLXFLAGS_PERMANENT));
    2623             Assert(pUser->iUserTable < X86_PG_PAE_ENTRIES);
    26242624            break;
    26252625        case PGMPOOLKIND_64BIT_PML4_FOR_64BIT_PML4:
Note: See TracChangeset for help on using the changeset viewer.

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