VirtualBox

Changeset 93744 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Feb 14, 2022 9:00:26 PM (3 years ago)
Author:
vboxsync
Message:

VMM: More arm64 adjustments. bugref:9898

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

Legend:

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

    r93115 r93744  
    3030*   Global Variables                                                                                                             *
    3131*********************************************************************************************************************************/
    32 #ifdef RT_ARCH_X86
     32#ifndef RT_ARCH_AMD64
    3333/**
    3434 * Parity calculation table.
     
    326326    /* 0xff = 11111111b */ X86_EFL_PF,
    327327};
    328 #endif /* RT_ARCH_X86 */
     328#endif /* RT_ARCH_AMD64 */
    329329
    330330
     
    378378
    379379
    380 #ifdef RT_ARCH_X86
     380#ifndef RT_ARCH_AMD64
    381381/*
    382382 * There are a few 64-bit on 32-bit things we'd rather do in C.  Actually, doing
     
    11321132
    11331133
    1134 #endif /* RT_ARCH_X86 */
    1135 #ifdef RT_ARCH_X86
     1134#endif /* !RT_ARCH_AMD64 */
     1135#ifndef RT_ARCH_AMD64
    11361136
    11371137/* multiplication and division */
     
    13371337
    13381338
    1339 #endif /* RT_ARCH_X86 */
     1339#endif /* !RT_ARCH_AMD64 */
    13401340
    13411341
  • trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp

    r93657 r93744  
    101101         * Determine the new worker.
    102102         */
     103#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    103104        bool const fLFence = RT_BOOL(ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_SSE2);
     105#endif
    104106        switch (pGip->u32Mode)
    105107        {
     108#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    106109            case SUPGIPMODE_SYNC_TSC:
    107110            case SUPGIPMODE_INVARIANT_TSC:
    108 #ifdef IN_RING0
     111# ifdef IN_RING0
    109112                if (pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO)
    110113                    pfnWorker = fLFence ? RTTimeNanoTSLFenceSyncInvarNoDelta    : RTTimeNanoTSLegacySyncInvarNoDelta;
    111114                else
    112115                    pfnWorker = fLFence ? RTTimeNanoTSLFenceSyncInvarWithDelta  : RTTimeNanoTSLegacySyncInvarWithDelta;
    113 #else
     116# else
    114117                if (pGip->fGetGipCpu & SUPGIPGETCPU_IDTR_LIMIT_MASK_MAX_SET_CPUS)
    115118                    pfnWorker = pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_PRACTICALLY_ZERO
     
    132135                              ? fLFence ? RTTimeNanoTSLFenceSyncInvarNoDelta            : RTTimeNanoTSLegacySyncInvarNoDelta
    133136                              : fLFence ? RTTimeNanoTSLFenceSyncInvarWithDeltaUseApicId : RTTimeNanoTSLegacySyncInvarWithDeltaUseApicId;
    134 #endif
     137# endif
    135138                break;
    136139
    137140            case SUPGIPMODE_ASYNC_TSC:
    138 #ifdef IN_RING0
     141# ifdef IN_RING0
    139142                pfnWorker = fLFence ? RTTimeNanoTSLFenceAsync : RTTimeNanoTSLegacyAsync;
    140 #else
     143# else
    141144                if (pGip->fGetGipCpu & SUPGIPGETCPU_IDTR_LIMIT_MASK_MAX_SET_CPUS)
    142145                    pfnWorker = fLFence ? RTTimeNanoTSLFenceAsyncUseIdtrLim     : RTTimeNanoTSLegacyAsyncUseIdtrLim;
     
    151154                else
    152155                    pfnWorker = fLFence ? RTTimeNanoTSLFenceAsyncUseApicId      : RTTimeNanoTSLegacyAsyncUseApicId;
    153 #endif
     156# endif
    154157                break;
    155 
     158#endif
    156159            default:
    157160                AssertFatalMsgFailed(("pVM=%p pGip=%p u32Mode=%#x\n", pVM, pGip, pGip->u32Mode));
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