VirtualBox

Ignore:
Timestamp:
Dec 4, 2024 3:20:14 PM (6 weeks ago)
Author:
vboxsync
Message:

VMM: Cleaning up ARMv8 / x86 split. jiraref:VBP-1470

File:
1 edited

Legend:

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

    r106589 r107227  
    568568    }
    569569
    570 #if defined(VBOX_VMM_TARGET_ARMV8)
    571     uint64_t cNsVTimerActivate = TMCpuGetVTimerActivationNano(pVCpu);
    572     const bool fVTimerActive = cNsVTimerActivate != UINT64_MAX;
     570#ifdef VBOX_VMM_TARGET_ARMV8
     571    uint64_t   cNsVTimerActivate = TMCpuGetVTimerActivationNano(pVCpu);
     572    const bool fVTimerActive     = cNsVTimerActivate != UINT64_MAX;
    573573#endif
    574574
     
    590590        if (    VM_FF_IS_ANY_SET(pVM, VM_FF_EXTERNAL_HALTED_MASK)
    591591            ||  VMCPU_FF_IS_ANY_SET(pVCpu, fMask)
    592 #if defined(VBOX_VMM_TARGET_ARMV8)
     592#ifdef VBOX_VMM_TARGET_ARMV8
    593593            ||  cNsElapsedTimers >= cNsVTimerActivate
    594594#endif
    595595            )
    596596        {
    597 #if defined(VBOX_VMM_TARGET_ARMV8)
     597#ifdef VBOX_VMM_TARGET_ARMV8
    598598            cNsVTimerActivate = 0;
    599599#endif
     
    601601        }
    602602
    603 #if defined(VBOX_VMM_TARGET_ARMV8)
     603#ifdef VBOX_VMM_TARGET_ARMV8
    604604        cNsVTimerActivate -= cNsElapsedTimers;
    605605#endif
     
    614614            break;
    615615
    616 #if defined(VBOX_VMM_TARGET_ARMV8)
     616#ifdef VBOX_VMM_TARGET_ARMV8
    617617        u64NanoTS = RT_MIN(cNsVTimerActivate, u64NanoTS);
    618618#endif
     
    679679                fBlockOnce = false;
    680680
    681 #if defined(VBOX_VMM_TARGET_ARMV8)
     681#ifdef VBOX_VMM_TARGET_ARMV8
    682682            cNsVTimerActivate -= RT_MIN(cNsVTimerActivate, Elapsed);
    683683            /* Did the vTimer expire? */
     
    689689    //if (fSpinning) RTLogRelPrintf("spun for %RU64 ns %u loops; lag=%RU64 pct=%d\n", RTTimeNanoTS() - u64Now, cLoops, TMVirtualSyncGetLag(pVM), u32CatchUpPct);
    690690
    691 #if defined(VBOX_VMM_TARGET_ARMV8)
     691#ifdef VBOX_VMM_TARGET_ARMV8
    692692    if (fVTimerActive)
    693693    {
     
    11571157     * Check Relevant FFs.
    11581158     */
    1159 #if defined(VBOX_VMM_TARGET_ARMV8)
    1160     const uint64_t fMaskInterrupts = ((fFlags & VMWAITHALTED_F_IGNORE_IRQS) ? VMCPU_FF_INTERRUPT_IRQ : 0)
     1159#ifdef VBOX_VMM_TARGET_ARMV8
     1160    const uint64_t fMaskIrqs = ((fFlags & VMWAITHALTED_F_IGNORE_IRQS) ? VMCPU_FF_INTERRUPT_IRQ : 0)
    11611161                                   | ((fFlags & VMWAITHALTED_F_IGNORE_FIQS) ? VMCPU_FF_INTERRUPT_FIQ : 0);
    1162     const uint64_t fMask = VMCPU_FF_EXTERNAL_HALTED_MASK & ~fMaskInterrupts;
     1162    const uint64_t fMask     = VMCPU_FF_EXTERNAL_HALTED_MASK & ~fMaskIrqs;
    11631163#else
    1164     const uint64_t fMask = !(fFlags & VMWAITHALTED_F_IGNORE_IRQS)
     1164    const uint64_t fMask     = !(fFlags & VMWAITHALTED_F_IGNORE_IRQS)
    11651165        ? VMCPU_FF_EXTERNAL_HALTED_MASK
    11661166        : VMCPU_FF_EXTERNAL_HALTED_MASK & ~(VMCPU_FF_UPDATE_APIC | VMCPU_FF_INTERRUPT_APIC | VMCPU_FF_INTERRUPT_PIC);
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