VirtualBox

Changeset 25921 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2010 10:34:35 AM (15 years ago)
Author:
vboxsync
Message:

Removed redundant checks

File:
1 edited

Legend:

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

    r24833 r25921  
    142142           
    143143        /* Spin until the VCPU has switched back. */
    144         while (     VMCPU_GET_STATE(pVCpu) == VMCPUSTATE_STARTED_EXEC
    145                &&   pVCpu->hwaccm.s.fCheckedTLBFlush
     144        while (     pVCpu->hwaccm.s.fCheckedTLBFlush
    146145               &&   cWorldSwitchExit == pVCpu->hwaccm.s.cWorldSwitchExit)
    147146        {
     
    185184        {
    186185            hwaccmQueueInvlPage(pVCpu, GCPtr);
    187             if (    VMCPU_GET_STATE(pVCpu) == VMCPUSTATE_STARTED_EXEC
    188                 &&  pVCpu->hwaccm.s.fCheckedTLBFlush)
     186            if (pVCpu->hwaccm.s.fCheckedTLBFlush)
    189187            {
    190188                STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatTlbShootdown);
     
    233231            continue;
    234232
    235         if (    VMCPU_GET_STATE(pVCpu) == VMCPUSTATE_STARTED_EXEC
    236             &&  pVCpu->hwaccm.s.fCheckedTLBFlush)
     233        if (pVCpu->hwaccm.s.fCheckedTLBFlush)
    237234        {
    238235            STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatTlbShootdownFlush);
     
    309306
    310307            VMCPU_FF_SET(pVCpu, VMCPU_FF_TLB_FLUSH);
    311             if (    VMCPU_GET_STATE(pVCpu) == VMCPUSTATE_STARTED_EXEC
    312                 &&  pVCpu->hwaccm.s.fCheckedTLBFlush)
     308            if (pVCpu->hwaccm.s.fCheckedTLBFlush)
    313309            {
    314310                STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatTlbShootdownFlush);
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