10-39
PHYSICAL DESIGN AND SYSTEM DEBUGGING
The Intel486 processor starts executing instructions at location FFFFFFF0H after reset.
The address latch is connected and the address is verified.
4.
The PAL implementing the address decoder should be connected to the Intel486
processor.
10.8.1 Debugging Features of the Intel486™ Processor
The Intel486 processor provides several features which simplify the debugging process for the
system hardware designer. The device offers three on-chip debugging aids:
•
The code execution breakpoint opcode.
•
The single-step capability provided by the TF bit in the flag register.
•
The code and data breakpoint capability as provided by the debug registers (DR3–DR0,
DR6 and DR7).
10.8.2 Breakpoint Instruction
The Intel486 processor provides a breakpoint instruction that can be used by software debuggers.
This instruction is a single byte opcode and generates an exception 3 trap when it is executed. In
a typical environment a debugger program can place the breakpoint instruction at various points
in the program. The single-byte breakpoint opcode is an alias for the two-byte general software
interrupt instruction, INTn where n=3. The only difference between INT 3 and INT n is that INT3
is never IOPL-sensitive but INTn is IOPL-sensitive in Protected Mode and Virtual 8086 Mode.
10.8.3 Single-Step Trap
The Intel486 processor supports x86-compatible single-step feature. If the single stepflag bit
(bit 8, TF) is set to 1 in the EFLAG register, a single step exception occurs. This exception is auto-
vectored to exception 1 and occurs immediately after completion of the next instruction. Typical-
ly a debugger sets the TF bit of the EFLAG register on the debugger's stack followed by transfer
of the control to the user program. The debugger also loads the flag image (EFLAG) via the IRET
instruction. The single-step trap occurs after execution of one instruction of the user program.
Since the exception 1 occurs right after the execution of the instruction as a trap, the CS:EIP
pushed onto the debugger's stack points to the next unexecuted instruction of the program which
is being debugged, merely by ending with an IRET instruction.
After MOV to SS and POP to SS instructions, the Intel486 processor masks some exceptions, in-
cluding single-step trap exceptions. Refer to the “Exceptions and Interrupts” chapter in the
Intel486™ Processor Family Programmer’s Reference Manual for an explanation of this pro-
cess.
10.8.4 Debug Registers
The Intel486 processor has an advanced debugging feature. It has six debug registers that allow
data access breakpoints as well code access breakpoints. Since the breakpoints are indicated by
Содержание Embedded Intel486
Страница 16: ......
Страница 18: ......
Страница 26: ......
Страница 28: ......
Страница 42: ......
Страница 44: ......
Страница 62: ......
Страница 64: ......
Страница 138: ......
Страница 139: ...5 Memory Subsystem Design Chapter Contents 5 1 Introduction 5 1 5 2 Processor and Cache Feature Overview 5 1 ...
Страница 140: ......
Страница 148: ......
Страница 150: ......
Страница 170: ......
Страница 172: ......
Страница 226: ......
Страница 228: ......
Страница 264: ......
Страница 282: ......
Страница 284: ......