Sun Microelectronics
321
B. Performance Instrumentation
B.3 PCR/PIC Accesses
An example of the operational flow in using the performance instrumentation is
shown in Figure B-3.
Figure B-3
PCR/PIC Operational Flow
B.4 Performance Instrumentation Counter Events
B.4.1 Instruction Execution Rates
Cycle_cnt [PIC0,PIC1]
Accumulated cycles. This is similar to the SPARC-V9 TICK register, except that
cycle counting is controlled by the PCR.UT and PCR.ST fields.
Instr_cnt [PIC0,PIC1]
The number of instructions completed. Annulled, mispredicted or trapped
instructions are not counted.
start
set up PCR
end
sel
→
PCR.sel
accumulate stat
PIC[PCR.sel]
→
Rd
in PIC
accumulate stat
in PIC
context switch to B
PCR
→
[saveA1]
PIC
→
[saveA2]
switch to context B
context switch to A
[saveA1]
→
PCR
[saveA2]
→
PIC
PIC[PCR.sel]
→
Rd
back to context A
accumulate stat
in PIC
PIC[PCR.sel]
→
Rd
[0,1]
→
PCR.UT/ST
[0,1]
→
PCR.PRIV
PIC[PCR.sel]
→
Rd
PIC[PCR.sel]
→
Rd
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com