VirtualBox

Changeset 74790 in vbox for trunk/src/VBox/VMM/VMMRC


Ignore:
Timestamp:
Oct 12, 2018 10:42:58 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125734
Message:

vm.h,VMM: Use VM_FF_IS_SET instead of VM_FF_IS_PENDING when checking a single flag. Added compile time assertion on single flag. bugref:9180

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMRC/TRPMRCHandlers.cpp

    r74789 r74790  
    184184            TMTimerPollVoid(pVM, pVCpu);
    185185            Log2(("TMTimerPoll at %08RX32 - VM_FF_TM_VIRTUAL_SYNC=%d VM_FF_TM_VIRTUAL_SYNC=%d\n", pRegFrame->eip,
    186                   VM_FF_IS_PENDING(pVM, VM_FF_TM_VIRTUAL_SYNC), VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_TIMER)));
     186                  VM_FF_IS_SET(pVM, VM_FF_TM_VIRTUAL_SYNC), VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_TIMER)));
    187187        }
    188188    }
     
    223223    {
    224224        /* The out of memory condition naturally outranks the others. */
    225         if (RT_UNLIKELY(VM_FF_IS_PENDING(pVM, VM_FF_PGM_NO_MEMORY)))
     225        if (RT_UNLIKELY(VM_FF_IS_SET(pVM, VM_FF_PGM_NO_MEMORY)))
    226226            rc = VINF_EM_NO_MEMORY;
    227227        else
     
    244244                rc = VINF_EM_RAW_TIMER_PENDING;
    245245            /* The Virtual Sync clock has stopped. */
    246             else if (VM_FF_IS_PENDING(pVM, VM_FF_TM_VIRTUAL_SYNC))
     246            else if (VM_FF_IS_SET(pVM, VM_FF_TM_VIRTUAL_SYNC))
    247247                rc = VINF_EM_RAW_TO_R3;
    248248            /* DMA work pending? */
    249             else if (VM_FF_IS_PENDING(pVM, VM_FF_PDM_DMA))
     249            else if (VM_FF_IS_SET(pVM, VM_FF_PDM_DMA))
    250250                rc = VINF_EM_RAW_TO_R3;
    251251            /* Pending request packets might contain actions that need immediate
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette