System Development and Debugging
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
53-5
If TECR[VSYNC] is set or cleared while the core is in debug mode, this information is reported when the
first VF pins report as the core returns to regular mode. If VSYNC was not changed while in debug mode,
the first VF pins report will be encoded as VF = 0b101 (indirect branch) due to the rfi instruction that is
being issued. In both cases, the first instruction fetch after debug mode is marked with the program trace
cycle attribute and is externally visible.
53.1.4.3
Sequential Instructions Marked as Indirect Branch
There are instances where non-branch (sequential) instructions can affect the machine in a manner similar
to indirect branch instructions. These instructions include rfi, mtmsr, isync, and mtspr to registers
CMPA–CMPF, ICTRL, ICR, and DER.
The core marks these instructions are marked as indirect branch instructions (VF = 0b101). The next
instruction address is marked with the program trace cycle attribute, as if it were an indirect branch target.
Therefore, when one of these special instructions is detected in the core, the address of the next instruction
is externally visible. The reconstructing software can now correctly evaluate the effect of these
instructions.
53.1.5
Reconstructing Program Trace
When program trace is needed, external hardware must sample the status pins (VF and VFLS) of every
clock and mark the address of all cycles with the program trace cycle attribute. Although program trace
can be used in various ways, the following describes only back trace and window trace.
53.1.5.1
Back Trace
Back trace is useful when a record of the program trace before an event occurred is needed. An example
of such an event is a system failure. If back trace is needed, external hardware should start sampling VF
and VFLS and the address of all cycles marked with the program trace cycle attribute immediately after
reset is negated.
At reset, cycles marked with the program trace cycle attribute are visible on the external bus (that is, the
instruction fetch show cycle/core serialize control field (ICTRL[ISCT_SER]) is cleared at reset). To avoid
this slower default mode, it is recommended that the user enters VSYNC state as described in
Section 53.1.1, “Program Trace Functional Description.”
To exit VSYNC state after a particular event,
either trap in debug mode and trigger the freeze indication or follow the method described in
Section 53.1.1, “Program Trace Functional Description.”
After exiting VSYNC state, the trace buffer
holds the trace of the program executed before the pertinent event occurred.
53.1.5.2
Window Trace
Window trace is useful when a record of the program trace between two events is needed, in which case,
VSYNC state should be entered between these two events. After exiting VSYNC state, the trace buffer
holds trace information for the program executed between the two events.
53.1.5.2.1
Synchronizing the Trace Window to Internal Core Events
The assertion/ negation of VSYNC is accomplished using the serial interface implemented in the
development port. To synchronize the assertion/negation of VSYNC to an internal event of the core, it is
Содержание PowerQUICC MPC870
Страница 1: ...MPC885 PowerQUICC Family Reference Manual Supports MPC885 MPC880 MPC875 MPC870 MPC885RM Rev 2 04 2006 ...
Страница 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Страница 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Страница 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Страница 192: ...MPC885 Instruction Set MPC885 PowerQUICC Family Reference Manual Rev 2 5 22 Freescale Semiconductor ...
Страница 242: ...Instruction and Data Caches MPC885 PowerQUICC Family Reference Manual Rev 2 7 30 Freescale Semiconductor ...
Страница 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Страница 416: ...External Bus Interface MPC885 PowerQUICC Family Reference Manual Rev 2 13 42 Freescale Semiconductor ...
Страница 440: ...Clocks and Power Control MPC885 PowerQUICC Family Reference Manual Rev 2 14 24 Freescale Semiconductor ...
Страница 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Страница 606: ...SDMA Channels and IDMA Emulation MPC885 PowerQUICC Family Reference Manual Rev 2 19 20 Freescale Semiconductor ...
Страница 738: ...SCC Asynchronous HDLC Mode and IrDA MPC885 PowerQUICC Family Reference Manual Rev 2 25 16 Freescale Semiconductor ...
Страница 780: ...SCC Ethernet Mode MPC885 PowerQUICC Family Reference Manual Rev 2 27 24 Freescale Semiconductor ...
Страница 794: ...SCC Transparent Mode MPC885 PowerQUICC Family Reference Manual Rev 2 28 14 Freescale Semiconductor ...
Страница 848: ...Serial Peripheral Interface SPI MPC885 PowerQUICC Family Reference Manual Rev 2 30 18 Freescale Semiconductor ...
Страница 882: ...Universal Serial Bus USB MPC885 PowerQUICC Family Reference Manual Rev 2 31 34 Freescale Semiconductor ...
Страница 944: ...Parallel I O Ports MPC885 PowerQUICC Family Reference Manual Rev 2 34 26 Freescale Semiconductor ...
Страница 956: ...CPM Interrupt Controller MPC885 PowerQUICC Family Reference Manual Rev 2 35 12 Freescale Semiconductor ...
Страница 1004: ...Buffer Descriptors and Connection Tables MPC885 PowerQUICC Family Reference Manual Rev 2 37 30 Freescale Semiconductor ...
Страница 1022: ...ATM Parameter RAM MPC885 PowerQUICC Family Reference Manual Rev 2 38 18 Freescale Semiconductor ...
Страница 1068: ...ATM Pace Control MPC885 PowerQUICC Family Reference Manual Rev 2 40 22 Freescale Semiconductor ...
Страница 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Страница 1120: ...AAL2 Implementation MPC885 PowerQUICC Family Reference Manual Rev 2 44 30 Freescale Semiconductor ...
Страница 1162: ...Fast Ethernet Controller FEC MPC885 PowerQUICC Family Reference Manual Rev 2 45 40 Freescale Semiconductor ...
Страница 1172: ...SEC Lite Overview MPC885 PowerQUICC Family Reference Manual Rev 2 46 8 Freescale Semiconductor ...
Страница 1176: ...SEC Lite Address Map MPC885 PowerQUICC Family Reference Manual Rev 2 47 4 Freescale Semiconductor ...
Страница 1214: ...SEC Lite Execution Units MPC885 PowerQUICC Family Reference Manual Rev 2 48 38 Freescale Semiconductor ...
Страница 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Страница 1313: ...MPC885 PowerQUICC Family Reference Manual Rev 2 Freescale Semiconductor B 1 Appendix B Serial Communications Performance TBD ...
Страница 1314: ...Serial Communications Performance MPC885 PowerQUICC Family Reference Manual Rev 2 B 2 Freescale Semiconductor ...
Страница 1320: ...Register Quick Reference Guide MPC885 PowerQUICC Family Reference Manual Rev 2 C 6 Freescale Semiconductor ...
Страница 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Страница 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Страница 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Страница 1384: ...Serial ATM Scrambling Reception and SI Programming MPC885 PowerQUICC Family Reference Manual Rev 2 H 6 Freescale Semiconductor ...
Страница 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...