VirtualBox

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


Ignore:
Timestamp:
Jun 27, 2008 8:26:15 AM (16 years ago)
Author:
vboxsync
Message:

Log update

File:
1 edited

Legend:

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

    r9890 r9980  
    29292929}
    29302930
     2931#ifdef LOG_ENABLED
     2932/**
     2933 * Return the string corresponding to the guest mode
     2934 *
     2935 * @returns string
     2936 * @param   enmGuestMode    The guest mode.
     2937 */
     2938const char *pgmr3GuestModeString(PGMMODE enmGuestMode)
     2939{
     2940    switch(enmGuestMode)
     2941    {
     2942        case PGMMODE_REAL:
     2943            return "Real mode";
     2944
     2945        case PGMMODE_PROTECTED:
     2946            return "Protected mode without paging";
     2947
     2948        case PGMMODE_32_BIT:
     2949            return "32 bits protected mode";
     2950
     2951        case PGMMODE_PAE:
     2952            return "PAE";
     2953
     2954        case PGMMODE_PAE_NX:
     2955            return "PAE + NX";
     2956
     2957        case PGMMODE_AMD64:
     2958            return "AMD64";
     2959
     2960        case PGMMODE_AMD64_NX:
     2961            return "AMD64 + NX";
     2962
     2963        default:
     2964            return "Unknown";
     2965    }
     2966}
     2967#endif
    29312968
    29322969/**
     
    29412978PGMR3DECL(int) PGMR3ChangeMode(PVM pVM, PGMMODE enmGuestMode)
    29422979{
    2943     LogFlow(("PGMR3ChangeMode: Guest mode: %d -> %d\n", pVM->pgm.s.enmGuestMode, enmGuestMode));
     2980    LogFlow(("PGMR3ChangeMode: Guest mode: %s -> %s\n", pgmr3GuestModeString(pVM->pgm.s.enmGuestMode), pgmr3GuestModeString(enmGuestMode)));
    29442981    STAM_REL_COUNTER_INC(&pVM->pgm.s.cGuestModeChanges);
    29452982
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