VirtualBox

Ignore:
Timestamp:
Nov 14, 2014 1:46:38 PM (10 years ago)
Author:
vboxsync
Message:

VMM: Fix sign inconsistency in the RealUseTSC case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp

    r53235 r53325  
    267267            /* The source is the real TSC. */
    268268            if (pVM->tm.s.fTSCVirtualized)
    269                 *poffRealTSC = pVCpu->tm.s.offTSCRawSrc;
     269                *poffRealTSC = 0 - pVCpu->tm.s.offTSCRawSrc;
    270270            else
    271271                *poffRealTSC = 0;
     
    365365            /* The source is the real TSC. */
    366366            if (pVM->tm.s.fTSCVirtualized)
    367                 *poffRealTSC = pVCpu->tm.s.offTSCRawSrc;
     367                *poffRealTSC = 0 - pVCpu->tm.s.offTSCRawSrc;
    368368            else
    369369                *poffRealTSC = 0;
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