4.11.8 Read Processor Cycle Counter
Format:
RPCC | Ra.wq | !Memory format |
Operation:
Ra ← {cycle counter}
Exceptions:
None
Instruction mnemonics:
RPCC | Read Processor Cycle Counter |
Qualifiers:
None
Description:
Register Ra is written with the processor cycle counter (PCC). The PCC register consists of two
See Section 3.1.5 for a description of the PCC.
If an operating system uses PCC_OFF to calculate the
RPCC | R0 | ; Read the process cycle counter |
SLL | R0, #32, R1 | ; Line up the offset and count fields |
ADDQ | R0, R1, R0 | ; Do add |
SRL | R0, #32, R0 | ; Zero extend the count to 64 bits |
The following example code returns the value of PCC_CNT in R0<31:0> and all zeros in R0<63:32>.
RPCC R0
ZAPNOT R0,#15,R0
Instruction Descriptions