6
January, 2004
Developer’s Manual
Intel XScale® Core
Developer’s Manual
Contents
8.3.5
Overflow Flag Status Register (FLAG) ................................................................ 110
8.3.6
Event Select Register (EVTSEL) ......................................................................... 111
8.3.7
Managing the Performance Monitor .................................................................... 112
8.4
Performance Monitoring Events ....................................................................................... 113
8.4.1
Instruction Cache Efficiency Mode ...................................................................... 115
8.4.2
Data Cache Efficiency Mode ............................................................................... 115
8.4.3
Instruction Fetch Latency Mode........................................................................... 115
8.4.4
Data/Bus Request Buffer Full Mode .................................................................... 116
8.4.5
Stall/Writeback Statistics ..................................................................................... 116
8.4.6
Instruction TLB Efficiency Mode .......................................................................... 117
8.4.7
Data TLB Efficiency Mode ................................................................................... 117
8.5
Multiple Performance Monitoring Run Statistics ............................................................... 118
8.6
Examples .......................................................................................................................... 119
8.6.1
XSC1 Example (2 counter variant) ...................................................................... 119
8.6.2
XSC2 Example (4 counter variant) ...................................................................... 120
9
Software Debug........................................................................................................................... 121
9.1
Definitions ......................................................................................................................... 121
9.2
Debug Registers ............................................................................................................... 121
9.3
Introduction ....................................................................................................................... 122
9.3.1
Halt Mode ............................................................................................................ 122
9.3.2
Monitor Mode....................................................................................................... 122
9.4
Debug Control and Status Register (DCSR) .................................................................... 123
9.4.1
Global Enable Bit (GE) ........................................................................................ 124
9.4.2
Halt Mode Bit (H) ................................................................................................. 124
9.4.3
SOC Break (B)..................................................................................................... 124
9.4.4
Vector Trap Bits (TF,TI,TD,TA,TS,TU,TR) .......................................................... 125
9.4.5
Sticky Abort Bit (SA) ............................................................................................ 125
9.4.6
Method of Entry Bits (MOE)................................................................................. 125
9.4.7
Trace Buffer Mode Bit (M) ................................................................................... 125
9.4.8
Trace Buffer Enable Bit (E).................................................................................. 125
9.5
Debug Exceptions............................................................................................................. 126
9.5.1
Halt Mode ............................................................................................................ 127
9.5.2
Monitor Mode....................................................................................................... 129
9.6
HW Breakpoint Resources ............................................................................................... 130
9.6.1
Instruction Breakpoints ........................................................................................ 130
9.6.2
Data Breakpoints ................................................................................................. 131
9.7
Software Breakpoints........................................................................................................ 133
9.8
Transmit/Receive Control Register (TXRXCTRL) ............................................................ 134
9.8.1
RX Register Ready Bit (RR) ................................................................................ 135
9.8.2
Overflow Flag (OV) .............................................................................................. 136
9.8.3
Download Flag (D)............................................................................................... 136
9.8.4
TX Register Ready Bit (TR) ................................................................................. 137
9.8.5
Conditional Execution Using TXRXCTRL............................................................ 137
9.9
Transmit Register (TX) ..................................................................................................... 138
9.10
Receive Register (RX) ...................................................................................................... 138
9.11
Debug JTAG Access ........................................................................................................ 139
9.11.1 SELDCSR JTAG Register ................................................................................... 139
9.11.1.1 hold_reset ............................................................................................ 140
9.11.1.2 ext_dbg_break ..................................................................................... 140