VirtualBox

Changeset 48174 in vbox


Ignore:
Timestamp:
Aug 30, 2013 1:55:50 AM (11 years ago)
Author:
vboxsync
Message:

HM: Adjusted some CPUMIsXxxDebugStateActive() assertion for 64-on-32-bit conditions.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r48153 r48174  
    13701370            CPUMR0LoadHyperDebugState(pVCpu, false /* include DR6 */);
    13711371        Assert(!CPUMIsGuestDebugStateActive(pVCpu));
    1372         Assert(CPUMIsHyperDebugStateActive(pVCpu));
     1372        Assert(CPUMIsHyperDebugStateActive(pVCpu) || HC_ARCH_BITS == 32);
    13731373
    13741374        /* Update DR6 & DR7. (The other DRx values are handled by CPUM one way or the other.) */
     
    14121412            }
    14131413            Assert(!CPUMIsHyperDebugStateActive(pVCpu));
    1414             Assert(CPUMIsGuestDebugStateActive(pVCpu));
     1414            Assert(CPUMIsGuestDebugStateActive(pVCpu) || HC_ARCH_BITS == 32);
    14151415            Log5(("hm: Loaded guest DRx\n"));
    14161416        }
     
    41704170        /* Save the host & load the guest debug state, restart execution of the MOV DRx instruction. */
    41714171        CPUMR0LoadGuestDebugState(pVCpu, false /* include DR6 */);
    4172         Assert(CPUMIsGuestDebugStateActive(pVCpu));
     4172        Assert(CPUMIsGuestDebugStateActive(pVCpu) || HC_ARCH_BITS == 32);
    41734173
    41744174        STAM_COUNTER_INC(&pVCpu->hm.s.StatDRxContextSwitch);
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r48156 r48174  
    34073407            CPUMR0LoadHyperDebugState(pVCpu, true /* include DR6 */);
    34083408        Assert(!CPUMIsGuestDebugStateActive(pVCpu));
    3409         Assert(CPUMIsHyperDebugStateActive(pVCpu));
     3409        Assert(CPUMIsHyperDebugStateActive(pVCpu) || HC_ARCH_BITS == 32);
    34103410
    34113411        /* Update DR7. (The other DRx values are handled by CPUM one way or the other.) */
     
    34303430            }
    34313431            Assert(!CPUMIsHyperDebugStateActive(pVCpu));
    3432             Assert(CPUMIsGuestDebugStateActive(pVCpu));
     3432            Assert(CPUMIsGuestDebugStateActive(pVCpu) || HC_ARCH_BITS == 32);
    34333433        }
    34343434        /*
     
    98769876        PVM pVM = pVCpu->CTX_SUFF(pVM);
    98779877        CPUMR0LoadGuestDebugState(pVCpu, true /* include DR6 */);
    9878         Assert(CPUMIsGuestDebugStateActive(pVCpu));
     9878        Assert(CPUMIsGuestDebugStateActive(pVCpu) || HC_ARCH_BITS == 32);
    98799879
    98809880        HM_RESTORE_PREEMPT_IF_NEEDED();
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