VirtualBox

Changeset 27444 in vbox


Ignore:
Timestamp:
Mar 17, 2010 12:55:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58923
Message:

Resync DR6 if the debug state is active.

File:
1 edited

Legend:

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

    r27442 r27444  
    29982998                if (rc == VINF_EM_RAW_GUEST_TRAP)
    29992999                {
    3000                     /** @todo this isn't working, but we'll never get here normally. */
    3001 
    30023000                    /* Update DR6 here. */
    30033001                    pCtx->dr[6]  = uDR6;
    30043002
     3003                    /* Resync DR6 if the debug state is active. */
     3004                    if (CPUMIsGuestDebugStateActive(pVCpu))
     3005                        ASMSetDR6(pCtx->dr[6]);
     3006                       
    30053007                    /* X86_DR7_GD will be cleared if drx accesses should be trapped inside the guest. */
    30063008                    pCtx->dr[7] &= ~X86_DR7_GD;
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