- Timestamp:
- Apr 13, 2007 4:14:48 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 20390
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp
r2075 r2081 40 40 * Gets the raw cpu tick from current virtual time. 41 41 */ 42 DECLINLINE(uint64_t) tmCpuTickGetRawVirtual(PVM pVM, bool fCheckTimers = true)42 DECLINLINE(uint64_t) tmCpuTickGetRawVirtual(PVM pVM, bool fCheckTimers) 43 43 { 44 44 uint64_t u64 = TMVirtualGetEx(pVM, fCheckTimers); … … 65 65 pVM->tm.s.u64TSCOffset = ASMReadTSC() - pVM->tm.s.u64TSC; 66 66 else 67 pVM->tm.s.u64TSCOffset = tmCpuTickGetRawVirtual(pVM) - pVM->tm.s.u64TSC; 67 pVM->tm.s.u64TSCOffset = tmCpuTickGetRawVirtual(pVM, false /* don't check for pending timers */) 68 - pVM->tm.s.u64TSC; 68 69 } 69 70 return VINF_SUCCESS; … … 109 110 u64 = ASMReadTSC(); 110 111 else 111 u64 = tmCpuTickGetRawVirtual(pVM, false /* don't check pending timers */);112 u64 = tmCpuTickGetRawVirtual(pVM, false /* don't check for pending timers */); 112 113 u64 -= pVM->tm.s.u64TSCOffset; 113 114 } … … 138 139 u64 = ASMReadTSC(); 139 140 else 140 u64 = tmCpuTickGetRawVirtual(pVM );141 u64 = tmCpuTickGetRawVirtual(pVM, true /* check for pending timers */); 141 142 u64 -= pVM->tm.s.u64TSCOffset; 142 143 }
Note:
See TracChangeset
for help on using the changeset viewer.