VirtualBox

Changeset 54087 in vbox


Ignore:
Timestamp:
Feb 5, 2015 2:08:06 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98041
Message:

VMM/TM: build fix.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TM.cpp

    r54085 r54087  
    34573457
    34583458/**
    3459  * Gets the descriptive TM TSC mode name.
     3459 * Gets the descriptive TM TSC mode name given the enum value.
    34603460 *
    34613461 * @returns The name.
    34623462 * @param   pVM      Pointer to the VM.
    34633463 */
    3464 static const char *tmR3GetTSCModeName(PVM pVM)
    3465 {
    3466     Assert(pVM);
    3467     switch (pVM->tm.s.enmTSCMode)
     3464static const char *tmR3GetTSCModeNameEx(TMTSCMODE enmMode)
     3465{
     3466    switch (enmMode)
    34683467    {
    34693468        case TMTSCMODE_REAL_TSC_OFFSET:    return "RealTscOffset";
     
    34763475
    34773476/**
    3478  * Gets the descriptive TM TSC mode name given the enum value.
     3477 * Gets the descriptive TM TSC mode name.
    34793478 *
    34803479 * @returns The name.
    34813480 * @param   pVM      Pointer to the VM.
    34823481 */
    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 
     3482static 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  
    768768DECLEXPORT(uint64_t)    tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData);
    769769
     770#ifdef IN_RING3
     771static const char *     tmR3GetTSCModeNameEx(TMTSCMODE enmMode);
     772#endif
     773
    770774
    771775/**
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