VirtualBox

Changeset 12091 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Sep 4, 2008 12:58:23 PM (16 years ago)
Author:
vboxsync
Message:

Debug register support updates

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

Legend:

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

    r12090 r12091  
    686686    if (pVM->hwaccm.s.fContextUseFlags & HWACCM_CHANGED_GUEST_DEBUG)
    687687    {
    688         /** @todo DR0-6 */
    689688        val  = pCtx->dr7;
    690689        val &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15));    /* must be zero */
    691690        val |= 0x400;                                       /* must be one */
    692 #ifdef VBOX_STRICT
     691#ifndef VBOX_WITH_DEBUG_REGISTER_SUPPORT
    693692        val = 0x400;
    694693#endif
     
    12021201
    12031202    /* Sync back the debug registers. */
    1204     /** @todo Implement debug registers correctly. */
    12051203    pCtx->dr6 = pVMCB->guest.u64DR6;
    12061204    pCtx->dr7 = pVMCB->guest.u64DR7;
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r12090 r12091  
    969969        val &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15));    /* must be zero */
    970970        val |= 0x400;                                                   /* must be one */
     971#ifdef VBOX_WITH_DEBUG_REGISTER_SUPPORT
    971972        rc |= VMXWriteVMCS(VMX_VMCS_GUEST_DR7,              val);
     973#else
     974        rc |= VMXWriteVMCS(VMX_VMCS_GUEST_DR7,            0x400);
     975#endif
    972976        AssertRC(rc);
    973977
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