Changeset 9980 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 27, 2008 8:26:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r9890 r9980 2929 2929 } 2930 2930 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 */ 2938 const 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 2931 2968 2932 2969 /** … … 2941 2978 PGMR3DECL(int) PGMR3ChangeMode(PVM pVM, PGMMODE enmGuestMode) 2942 2979 { 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))); 2944 2981 STAM_REL_COUNTER_INC(&pVM->pgm.s.cGuestModeChanges); 2945 2982
Note:
See TracChangeset
for help on using the changeset viewer.