Pcr/Pic Accesses; Performance Instrumentation Counter Events - Sun Microsystems UltraSPARC-I User Manual

Table of Contents

Advertisement

B.3 PCR/PIC Accesses
An example of the operational flow in using the performance instrumentation is
shown in Figure B-3.
set up PCR
sel
[0,1]
[0,1]
PIC[PCR.sel]
accumulate stat
PIC[PCR.sel]
accumulate stat
Figure B-3
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]
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
The number of instructions completed. Annulled, mispredicted or trapped
start
PCR.sel
PCR.UT/ST
PCR.PRIV
Rd
in PIC
Rd
in PIC
PCR/PIC Operational Flow
B. Performance Instrumentation
context switch to B
PCR
[saveA1]
PIC
[saveA2]
PIC[PCR.sel]
Rd
switch to context B
back to context A
context switch to A
[saveA1]
PCR
[saveA2]
PIC
PIC[PCR.sel]
Rd
accumulate stat
in PIC
PIC[PCR.sel]
Rd
end

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UltraSPARC-I and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Ultrasparc-ii

Table of Contents