VirtualBox

Changeset 53187 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Nov 3, 2014 9:27:48 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96733
Message:

x86.h: Found some documentation of DR7 bits 12, 14 and 15. Tentatively added defines for them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r52778 r53187  
    862862#define X86_DR7_GE_ALL                      UINT64_C(0x00000000000000aa)
    863863
     864/** Bit 12 - IR (ICE) - Interrupt redirection on Pentium.  When set, the in
     865 * Circut Emulator (ICE) will break emulation on breakpoints and stuff.
     866 * May cause CPU hang if enabled without ICE attached when the ICEBP/INT1
     867 * instruction is executed.
     868 * @see http://www.rcollins.org/secrets/DR7.html  */
     869#define X86_DR7_ICE_IR                      RT_BIT(12)
    864870/** Bit 13 - GD - General detect enable. Enables emulators to get exceptions when
    865871 * any DR register is accessed. */
    866872#define X86_DR7_GD                          RT_BIT(13)
     873/** Bit 14 - TR1 (ICE) - Code discontinuity trace for use with ICE on
     874 *  Pentium. */
     875#define X86_DR7_ICE_TR1                     RT_BIT(14)
     876/** Bit 15 - TR2 (ICE) - Controls unknown ICE trace feature of the pentium. */
     877#define X86_DR7_ICE_TR2                     RT_BIT(15)
    867878/** Bit 16 & 17 - R/W0 - Read write field 0. Values X86_DR7_RW_*. */
    868879#define X86_DR7_RW0_MASK                    (3 << 16)
     
    884895/** Bits which reads as 1s. */
    885896#define X86_DR7_RA1_MASK                    (RT_BIT(10))
    886 /** Bits which reads as zeros. */
     897/** Bits which reads as zeros.  These are related to ICE (bits 12, 14, 15). */
    887898#define X86_DR7_RAZ_MASK                    UINT64_C(0x0000d800)
    888899/** Bits which must be 0s when writing to DR7. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette