VirtualBox

Changeset 12685 in vbox for trunk/src


Ignore:
Timestamp:
Sep 24, 2008 1:24:39 PM (16 years ago)
Author:
vboxsync
Message:

Must select a valid switcher even if not used.

File:
1 edited

Legend:

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

    r12682 r12685  
    29902990             */
    29912991            enmShadowMode = PGMMODE_32_BIT;
    2992             enmSwitcher = VMMSWITCHER_INVALID;
     2992
     2993            switch (enmHostMode)
     2994            {
     2995                case SUPPAGINGMODE_32_BIT:
     2996                case SUPPAGINGMODE_32_BIT_GLOBAL:
     2997                    enmSwitcher = VMMSWITCHER_32_TO_32;
     2998                    break;
     2999
     3000                case SUPPAGINGMODE_PAE:
     3001                case SUPPAGINGMODE_PAE_NX:
     3002                case SUPPAGINGMODE_PAE_GLOBAL:
     3003                case SUPPAGINGMODE_PAE_GLOBAL_NX:
     3004                    enmSwitcher = VMMSWITCHER_PAE_TO_PAE;
     3005                    break;
     3006
     3007                case SUPPAGINGMODE_AMD64:
     3008                case SUPPAGINGMODE_AMD64_GLOBAL:
     3009                case SUPPAGINGMODE_AMD64_NX:
     3010                case SUPPAGINGMODE_AMD64_GLOBAL_NX:
     3011                    /* Not correct, but not relevant as we don't use switchers in real or protected mode without paging. */
     3012                    enmSwitcher = VMMSWITCHER_AMD64_TO_PAE;
     3013                    break;
     3014
     3015                default: AssertMsgFailed(("enmHostMode=%d\n", enmHostMode)); break;
     3016            }
    29933017            break;
    29943018
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