VirtualBox

Changeset 21144 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 2, 2009 8:07:39 AM (16 years ago)
Author:
vboxsync
Message:

Prevent future mistakes with VM_FF_TESTANDCLEAR

Location:
trunk/src/VBox/VMM
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGF.cpp

    r20664 r21144  
    297297    int rc = VINF_SUCCESS;
    298298
    299     if (VM_FF_TESTANDCLEAR(pVM, VM_FF_DBGF_BIT))
     299    if (VM_FF_TESTANDCLEAR(pVM, VM_FF_DBGF))
    300300    {
    301301        PVMCPU pVCpu = VMMGetCpu(pVM);
  • trunk/src/VBox/VMM/EM.cpp

    r20871 r21144  
    33543354         * Postponed reset request.
    33553355         */
    3356         if (VM_FF_TESTANDCLEAR(pVM, VM_FF_RESET_BIT))
     3356        if (VM_FF_TESTANDCLEAR(pVM, VM_FF_RESET))
    33573357        {
    33583358            rc2 = VMR3Reset(pVM);
  • trunk/src/VBox/VMM/PDM.cpp

    r20874 r21144  
    13671367        return;
    13681368
    1369     if (VM_FF_TESTANDCLEAR(pVM, VM_FF_PDM_DMA_BIT))
     1369    if (VM_FF_TESTANDCLEAR(pVM, VM_FF_PDM_DMA))
    13701370    {
    13711371        if (pVM->pdm.s.pDmac)
  • trunk/src/VBox/VMM/VMEmt.cpp

    r20961 r21144  
    184184                Log(("vmR3EmulationThread: Dbg rc=%Rrc, VM state %d -> %d\n", rc, enmBefore, pVM->enmVMState));
    185185            }
    186             else if (VM_FF_TESTANDCLEAR(pVM, VM_FF_RESET_BIT))
     186            else if (VM_FF_TESTANDCLEAR(pVM, VM_FF_RESET))
    187187            {
    188188                /*
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r21001 r21144  
    429429    if (!TRPMHasTrap(pVCpu))
    430430    {
    431         if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_INTERRUPT_NMI_BIT))
     431        if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_INTERRUPT_NMI))
    432432        {
    433433            SVM_EVENT Event;
     
    10691069
    10701070    /* Check for tlb shootdown flushes. */
    1071     if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_TLB_FLUSH_BIT))
     1071    if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_TLB_FLUSH))
    10721072        pVCpu->hwaccm.s.fForceTLBFlush = true;
    10731073
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r21001 r21144  
    757757    if (!TRPMHasTrap(pVCpu))
    758758    {
    759         if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_INTERRUPT_NMI_BIT))
     759        if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_INTERRUPT_NMI))
    760760        {
    761761            RTGCUINTPTR intInfo;
     
    18711871
    18721872    /* Check for tlb shootdown flushes. */
    1873     if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_TLB_FLUSH_BIT))
     1873    if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_TLB_FLUSH))
    18741874        pVCpu->hwaccm.s.fForceTLBFlush = true;
    18751875
     
    19361936
    19371937    /* Check for tlb shootdown flushes. */
    1938     if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_TLB_FLUSH_BIT))
     1938    if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_TLB_FLUSH))
    19391939        pVCpu->hwaccm.s.fForceTLBFlush = true;
    19401940
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