Changeset 54087 in vbox
- Timestamp:
- Feb 5, 2015 2:08:06 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98041
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/TM.cpp
r54085 r54087 3457 3457 3458 3458 /** 3459 * Gets the descriptive TM TSC mode name .3459 * Gets the descriptive TM TSC mode name given the enum value. 3460 3460 * 3461 3461 * @returns The name. 3462 3462 * @param pVM Pointer to the VM. 3463 3463 */ 3464 static const char *tmR3GetTSCModeName(PVM pVM) 3465 { 3466 Assert(pVM); 3467 switch (pVM->tm.s.enmTSCMode) 3464 static const char *tmR3GetTSCModeNameEx(TMTSCMODE enmMode) 3465 { 3466 switch (enmMode) 3468 3467 { 3469 3468 case TMTSCMODE_REAL_TSC_OFFSET: return "RealTscOffset"; … … 3476 3475 3477 3476 /** 3478 * Gets the descriptive TM TSC mode name given the enum value.3477 * Gets the descriptive TM TSC mode name. 3479 3478 * 3480 3479 * @returns The name. 3481 3480 * @param pVM Pointer to the VM. 3482 3481 */ 3483 static const char *tmR3GetTSCModeNameEx(TMTSCMODE enmMode) 3484 { 3485 switch (enmMode) 3486 { 3487 case TMTSCMODE_REAL_TSC_OFFSET: return "RealTscOffset"; 3488 case TMTSCMODE_VIRT_TSC_EMULATED: return "VirtTscEmulated"; 3489 case TMTSCMODE_DYNAMIC: return "Dynamic"; 3490 default: return "???"; 3491 } 3492 } 3493 3482 static const char *tmR3GetTSCModeName(PVM pVM) 3483 { 3484 Assert(pVM); 3485 return tmR3GetTSCModeNameEx(pVM->tm.s.enmTSCMode); 3486 } 3487 -
trunk/src/VBox/VMM/include/TMInternal.h
r54065 r54087 768 768 DECLEXPORT(uint64_t) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData); 769 769 770 #ifdef IN_RING3 771 static const char * tmR3GetTSCModeNameEx(TMTSCMODE enmMode); 772 #endif 773 770 774 771 775 /**
Note:
See TracChangeset
for help on using the changeset viewer.