
Chapter 13
Test and Debug
273
23542A/0—September 2000
AMD-K6-2E+ Embedded Processor Data Sheet
Preliminary Information
The LE (bit 8) and GE (bit 9) bits in DR7 have no effect on the
operation of the processor and are provided in order to be
software-compatible with previous generations of x86
processors.
When set to 1, the GD bit in DR7 (bit 13) enables the debug
exception associated with the BD bit (bit 13) in DR6. This bit is
set to 0 when a debug exception is generated.
LEN3–LEN0 and RW3–RW0 are two-bit fields in DR7 that
specify the length and type of each breakpoint as defined in
Table 54.
Debug Exceptions
A debug exception is categorized as either a debug trap or a
debug fault.
I
A
debug trap
calls the debugger following the execution of
the instruction that caused the trap.
A
debug fault
calls the debugger prior to the execution of the
instruction that caused the fault.
I
All debug traps and faults generate either an Interrupt 01h or
an Interrupt 03h exception.
Table 54. DR7 LEN and RW Definitions
LEN Bits
1
Notes:
1.
2. When RW equals 00b, LEN must be equal to 00b.
3. When RW equals 10b, debugging extensions (DE) must be enabled (bit 3 of CR4 must be set to 1).
If DE is set to 0, then RW equal to 10b is undefined.
LEN bits equal to 10b is undefined.
RW Bits
Breakpoint
00b
00b
2
Instruction Execution
00b
01b
11b
00b
01b
11b
00b
01b
11b
01b
One-byte Data Write
Two-byte Data Write
Four-byte Data Write
One-byte I/O Read or Write
Two-byte I/O Read or Write
Four-byte I/O Read or Write
One-byte Data Read or Write
Two-byte Data Read or Write
Four-byte Data Read or Write
10b
3
11b