9-1
9
CHAPTER 9
TRACING AND DEBUGGING
This chapter describes the i960
®
Jx processor’s facilities for runtime activity monitoring. The i960
architecture provides facilities for monitoring processor activity through trace event generation. A
trace event indicates a condition where the processor has just completed executing a particular
instruction or a type of instruction or where the processor is about to execute a particular
instruction. When the processor detects a trace event, it generates a trace fault and makes an
implicit call to the fault handling procedure for trace faults. This procedure can, in turn, call
debugging software to display or analyze the processor state when the trace event occurred. This
analysis can be used to locate software or hardware bugs or for general system monitoring during
program development.
Tracing is enabled by the process controls (PC) register trace enable bit and a set of trace mode bits
in the trace controls (TC) register. Alternatively, the
mark
and
fmark
instructions can be used to
generate trace events explicitly in the instruction stream.
The i960 Jx processor also provides four hardware breakpoint registers that generate trace events
and trace faults. Two registers are dedicated to trapping on instruction execution addresses
(IPB0,1), while the remaining two registers can trap on the addresses of various types of data
accesses (DAB0,1).
9.1
TRACE CONTROLS
To use the architecture’s tracing facilities, software must provide trace fault handling procedures,
perhaps interfaced with a debugging monitor. Software must also manipulate the following registers
and control bits to enable the various tracing modes and enable or disable tracing in general.
These controls are described in the following subsections.
•
TC register mode bits
•
PC register trace enable bit
•
DAB0-DAB1 registers’ address field and
enable bit (in the control table)
•
Previous Frame Pointer (PFP) register return
status field prereturn trace flag (bit 3)
•
System procedure table super-
visor-stack-pointer field trace control bit
•
Breakpoint Control (BPCON) register
breakpoint mode bits and enable bits (in the
control table)
•
IPB0-IPB1 registers’ address field
(in the control table)
Содержание i960 Jx
Страница 1: ...Release Date December 1997 Order Number 272483 002 i960 Jx Microprocessor Developer s Manual ...
Страница 24: ......
Страница 25: ...1 INTRODUCTION ...
Страница 26: ......
Страница 35: ...2 DATA TYPES AND MEMORY ADDRESSING MODES ...
Страница 36: ......
Страница 46: ......
Страница 47: ...3 PROGRAMMING ENVIRONMENT ...
Страница 48: ......
Страница 73: ...4 CACHE AND ON CHIP DATA RAM ...
Страница 74: ......
Страница 85: ...5 INSTRUCTION SET OVERVIEW ...
Страница 86: ......
Страница 111: ...6 INSTRUCTION SET REFERENCE ...
Страница 112: ......
Страница 195: ...INSTRUCTION SET REFERENCE 6 83 6 Opcode mov 5CCH REG movl 5DCH REG movt 5ECH REG movq 5FCH REG See Also LOAD STORE lda ...
Страница 233: ...7 PROCEDURE CALLS ...
Страница 234: ......
Страница 256: ......
Страница 257: ...8 FAULTS ...
Страница 258: ......
Страница 291: ...9 TRACING AND DEBUGGING ...
Страница 292: ......
Страница 309: ...10 TIMERS ...
Страница 310: ......
Страница 324: ......
Страница 325: ...11 INTERRUPTS ...
Страница 326: ......
Страница 369: ...12 INITIALIZATION AND SYSTEM REQUIREMENTS ...
Страница 370: ......
Страница 412: ......
Страница 413: ...13 MEMORY CONFIGURATION ...
Страница 414: ......
Страница 429: ...14 EXTERNAL BUS ...
Страница 430: ......
Страница 468: ......
Страница 469: ...15 TEST FEATURES ...
Страница 470: ......
Страница 493: ...A CONSIDERATIONS FOR WRITING PORTABLE CODE ...
Страница 494: ......
Страница 502: ......
Страница 503: ...B OPCODES AND EXECUTION TIMES ...
Страница 504: ......
Страница 515: ...C MACHINE LEVEL INSTRUCTION FORMATS ...
Страница 516: ......
Страница 523: ...D REGISTER AND DATA STRUCTURES ...
Страница 524: ......
Страница 550: ......
Страница 551: ...GLOSSARY ...
Страница 552: ......
Страница 561: ...INDEX ...
Страница 562: ......
Страница 578: ......