6–22 Privileged Architecture Library Code
21264/EV68A Hardware Reference Manual
PerformanceCounter Support
Forinstructions that cause a trap, the last cycle in the window is the 2nd cycle after
the trap.Mispredicted branches are included in this category.
For nontrappinginstructions that retire, the last cycle in the window is the2nd
cycle afterthe instruction retires.
For instructionsthat abort, the last cycle in the window is the 2nd cycle after the
trapthat caused the abort.
Forinstructions that are squashed (such as TRAPB), the last cycle in the window is
approximatelythe 2nd cycle after the squashed instruction would have aborted or
retired.
Every non-squashedvalid fetched instruction either aborts or retires, but not both.
In eithercase, the instruction may also trap.
PCTR0 is disabledfrom counting until PCTR_CTL is next written.
5. InterruptPALcode
When ISUM field PC[1:0]is set, execution of PCTR0's or PCTR1's interrupt PAL-
code is performed.
6. Operatingsystem interrupt handler
The handlershould first read the IPRs in Table 6–13 and then write PCTR_CTL to set
up the next interrupt.
Table 6–13 ProfileMe Mode Returned IPR Contents
IPRName RelevantFields Meaning
PMPC[63:0] All ProfiledPC.
I_STAT ICM Instructionwas in a new Icache fill stream.
TRP Instructioncaused a trap and was not in the shadowof
ayounger trapping instruction.
MIS Conditional branch mispredict.
TRAP TYPE Exception type code.
LSO Load-storeorder replay trap.
OVR Counter0 overcount.
PCTR_CTL VAL Instructionretiredvalid.
TAK Branchdirectionif instruction is a conditional branch.
PM_STALLED Instructi on stalled for at least one cycl e between fetch
and map stages of pipeline.
PM_KILLED_BM Instructionkilled during or before cycle in which it
wasmapped.
PCTR0[19:0] Counter0 value.
PCTR1[19:0] Counter1 value.