Changeset 107227 in vbox for trunk/src/VBox/VMM/VMMR3/VMEmt.cpp
- Timestamp:
- Dec 4, 2024 3:20:14 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/VMEmt.cpp
r106589 r107227 568 568 } 569 569 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; 573 573 #endif 574 574 … … 590 590 if ( VM_FF_IS_ANY_SET(pVM, VM_FF_EXTERNAL_HALTED_MASK) 591 591 || VMCPU_FF_IS_ANY_SET(pVCpu, fMask) 592 #if defined(VBOX_VMM_TARGET_ARMV8)592 #ifdef VBOX_VMM_TARGET_ARMV8 593 593 || cNsElapsedTimers >= cNsVTimerActivate 594 594 #endif 595 595 ) 596 596 { 597 #if defined(VBOX_VMM_TARGET_ARMV8)597 #ifdef VBOX_VMM_TARGET_ARMV8 598 598 cNsVTimerActivate = 0; 599 599 #endif … … 601 601 } 602 602 603 #if defined(VBOX_VMM_TARGET_ARMV8)603 #ifdef VBOX_VMM_TARGET_ARMV8 604 604 cNsVTimerActivate -= cNsElapsedTimers; 605 605 #endif … … 614 614 break; 615 615 616 #if defined(VBOX_VMM_TARGET_ARMV8)616 #ifdef VBOX_VMM_TARGET_ARMV8 617 617 u64NanoTS = RT_MIN(cNsVTimerActivate, u64NanoTS); 618 618 #endif … … 679 679 fBlockOnce = false; 680 680 681 #if defined(VBOX_VMM_TARGET_ARMV8)681 #ifdef VBOX_VMM_TARGET_ARMV8 682 682 cNsVTimerActivate -= RT_MIN(cNsVTimerActivate, Elapsed); 683 683 /* Did the vTimer expire? */ … … 689 689 //if (fSpinning) RTLogRelPrintf("spun for %RU64 ns %u loops; lag=%RU64 pct=%d\n", RTTimeNanoTS() - u64Now, cLoops, TMVirtualSyncGetLag(pVM), u32CatchUpPct); 690 690 691 #if defined(VBOX_VMM_TARGET_ARMV8)691 #ifdef VBOX_VMM_TARGET_ARMV8 692 692 if (fVTimerActive) 693 693 { … … 1157 1157 * Check Relevant FFs. 1158 1158 */ 1159 #if defined(VBOX_VMM_TARGET_ARMV8)1160 const uint64_t fMaskI nterrupts = ((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) 1161 1161 | ((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; 1163 1163 #else 1164 const uint64_t fMask = !(fFlags & VMWAITHALTED_F_IGNORE_IRQS)1164 const uint64_t fMask = !(fFlags & VMWAITHALTED_F_IGNORE_IRQS) 1165 1165 ? VMCPU_FF_EXTERNAL_HALTED_MASK 1166 1166 : 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.