VirtualBox

Changeset 12593 in vbox


Ignore:
Timestamp:
Sep 19, 2008 9:44:35 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36829
Message:

Some comments about DR7.

File:
1 edited

Legend:

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

    r12578 r12593  
    294294        pCtx->dr6 = ASMGetDR6();
    295295
    296     /* Restore the host's debug state. DR0-3, DR6 and only then DR7! */
     296    /* Restore the host's debug state. DR0-3, DR6 and only then DR7!
     297     * DR7 contains 0x400 right now.
     298     */
    297299    ASMSetDR0(pVM->cpum.s.Host.dr0);
    298300    ASMSetDR1(pVM->cpum.s.Host.dr1);
     
    323325    pVM->cpum.s.Host.dr3 = ASMGetDR3();
    324326    pVM->cpum.s.Host.dr6 = ASMGetDR6();
     327    /* @todo dr7 might already have been changed to 0x400; don't care right now as it's harmless. */
    325328    pVM->cpum.s.Host.dr7 = ASMGetDR7();
    326329    /* Make sure DR7 is harmless or else we could trigger breakpoints when restoring dr0-3 (!) */
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