VirtualBox

Ignore:
Timestamp:
Oct 12, 2018 10:14:19 AM (6 years ago)
Author:
vboxsync
Message:

vm.h,VMM: Use VMCPU_FF_IS_SET instead of VMCPU_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/VMMAll/TMAll.cpp

    r72685 r74785  
    801801        if (!VMCPU_FF_IS_SET(pVCpuDst, VMCPU_FF_TIMER))
    802802        {
    803             Log5(("TMAll(%u): FF: %d -> 1\n", __LINE__, VMCPU_FF_IS_PENDING(pVCpuDst, VMCPU_FF_TIMER)));
     803            Log5(("TMAll(%u): FF: %d -> 1\n", __LINE__, VMCPU_FF_IS_SET(pVCpuDst, VMCPU_FF_TIMER)));
    804804            VMCPU_FF_SET(pVCpuDst, VMCPU_FF_TIMER);
    805805#if defined(IN_RING3) && defined(VBOX_WITH_REM)
     
    847847                    &&  !VMCPU_FF_IS_SET(pVCpuDst, VMCPU_FF_TIMER))
    848848                {
    849                     Log5(("TMAll(%u): FF: %d -> 1\n", __LINE__, VMCPU_FF_IS_PENDING(pVCpuDst, VMCPU_FF_TIMER)));
     849                    Log5(("TMAll(%u): FF: %d -> 1\n", __LINE__, VMCPU_FF_IS_SET(pVCpuDst, VMCPU_FF_TIMER)));
    850850                    VMCPU_FF_SET(pVCpuDst, VMCPU_FF_TIMER);
    851851#if defined(IN_RING3) && defined(VBOX_WITH_REM)
     
    946946            &&  !VMCPU_FF_IS_SET(pVCpuDst, VMCPU_FF_TIMER))
    947947        {
    948             Log5(("TMAll(%u): FF: %d -> 1\n", __LINE__, VMCPU_FF_IS_PENDING(pVCpuDst, VMCPU_FF_TIMER)));
     948            Log5(("TMAll(%u): FF: %d -> 1\n", __LINE__, VMCPU_FF_IS_SET(pVCpuDst, VMCPU_FF_TIMER)));
    949949            VMCPU_FF_SET(pVCpuDst, VMCPU_FF_TIMER);
    950950#if defined(IN_RING3) && defined(VBOX_WITH_REM)
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