Changeset 93744 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Feb 14, 2022 9:00:26 PM (3 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp
r93115 r93744 30 30 * Global Variables * 31 31 *********************************************************************************************************************************/ 32 #if def RT_ARCH_X8632 #ifndef RT_ARCH_AMD64 33 33 /** 34 34 * Parity calculation table. … … 326 326 /* 0xff = 11111111b */ X86_EFL_PF, 327 327 }; 328 #endif /* RT_ARCH_ X86*/328 #endif /* RT_ARCH_AMD64 */ 329 329 330 330 … … 378 378 379 379 380 #if def RT_ARCH_X86380 #ifndef RT_ARCH_AMD64 381 381 /* 382 382 * There are a few 64-bit on 32-bit things we'd rather do in C. Actually, doing … … 1132 1132 1133 1133 1134 #endif /* RT_ARCH_X86*/1135 #if def RT_ARCH_X861134 #endif /* !RT_ARCH_AMD64 */ 1135 #ifndef RT_ARCH_AMD64 1136 1136 1137 1137 /* multiplication and division */ … … 1337 1337 1338 1338 1339 #endif /* RT_ARCH_X86*/1339 #endif /* !RT_ARCH_AMD64 */ 1340 1340 1341 1341 -
trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
r93657 r93744 101 101 * Determine the new worker. 102 102 */ 103 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 103 104 bool const fLFence = RT_BOOL(ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_SSE2); 105 #endif 104 106 switch (pGip->u32Mode) 105 107 { 108 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 106 109 case SUPGIPMODE_SYNC_TSC: 107 110 case SUPGIPMODE_INVARIANT_TSC: 108 # ifdef IN_RING0111 # ifdef IN_RING0 109 112 if (pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO) 110 113 pfnWorker = fLFence ? RTTimeNanoTSLFenceSyncInvarNoDelta : RTTimeNanoTSLegacySyncInvarNoDelta; 111 114 else 112 115 pfnWorker = fLFence ? RTTimeNanoTSLFenceSyncInvarWithDelta : RTTimeNanoTSLegacySyncInvarWithDelta; 113 # else116 # else 114 117 if (pGip->fGetGipCpu & SUPGIPGETCPU_IDTR_LIMIT_MASK_MAX_SET_CPUS) 115 118 pfnWorker = pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_PRACTICALLY_ZERO … … 132 135 ? fLFence ? RTTimeNanoTSLFenceSyncInvarNoDelta : RTTimeNanoTSLegacySyncInvarNoDelta 133 136 : fLFence ? RTTimeNanoTSLFenceSyncInvarWithDeltaUseApicId : RTTimeNanoTSLegacySyncInvarWithDeltaUseApicId; 134 # endif137 # endif 135 138 break; 136 139 137 140 case SUPGIPMODE_ASYNC_TSC: 138 # ifdef IN_RING0141 # ifdef IN_RING0 139 142 pfnWorker = fLFence ? RTTimeNanoTSLFenceAsync : RTTimeNanoTSLegacyAsync; 140 # else143 # else 141 144 if (pGip->fGetGipCpu & SUPGIPGETCPU_IDTR_LIMIT_MASK_MAX_SET_CPUS) 142 145 pfnWorker = fLFence ? RTTimeNanoTSLFenceAsyncUseIdtrLim : RTTimeNanoTSLegacyAsyncUseIdtrLim; … … 151 154 else 152 155 pfnWorker = fLFence ? RTTimeNanoTSLFenceAsyncUseApicId : RTTimeNanoTSLegacyAsyncUseApicId; 153 # endif156 # endif 154 157 break; 155 158 #endif 156 159 default: 157 160 AssertFatalMsgFailed(("pVM=%p pGip=%p u32Mode=%#x\n", pVM, pGip, pGip->u32Mode));
Note:
See TracChangeset
for help on using the changeset viewer.