102
January, 2004
Developer’s Manual
Intel XScale® Core
Developer’s Manual
Performance Monitoring
8.2
XSC1 Register Description (2 counter variant)
Table 8-1
contains details on accessing these registers with MRC and MCR coprocessor
instructions.
8.2.1
Clock Counter (CCNT; CP14 - Register 1)
The format of CCNT is shown in
Table 8-6
. The clock counter is reset to ‘0’ by Performance
Monitor Control Register (PMNC) or can be set to a predetermined value by directly writing to it.
It counts core clock cycles. When CCNT reaches its maximum value 0xFFFF,FFFF, the next clock
cycle will cause it to roll over to zero and set the overflow flag (bit 6) in PMNC. An IRQ or FIQ
will be reported if it is enabled via bit 6 in the PMNC register.
Table 8-1.
XSC1 Performance Monitoring Registers
Description
CRn
Register#
CRm
Register#
Instruction
(PMNC) Performance Monitor Control
Register
0b0000
0b0000
Read: MRC p14, 0, Rd, c0, c0, 0
Write: MCR p14, 0, Rd, c0, c0, 0
(CCNT) Clock Counter Register
0b0001
0b0000
Read: MRC p14, 0, Rd, c1, c0, 0
Write: MCR p14, 0, Rd, c1, c0, 0
(PMN0) Performance Count Register 0
0b0010
0b0000
Read: MRC p14, 0, Rd, c2, c0, 0
Write: MCR p14, 0, Rd, c2, c0, 0
(PMN1) Performance Count Register 1
0b0011
0b0000
Read: MRC p14, 0, Rd, c3, c0, 0
Write: MCR p14, 0, Rd, c3, c0, 0
Table 8-2.
Clock Count Register (CCNT)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Clock Counter
reset value: unpredictable
Bits
Access
Description
31:0
Read / Write
32-bit clock counter
- Reset to ‘0’ by PMNC register.
When the clock counter reaches its maximum value
0xFFFF,FFFF, the next cycle will cause it to roll over to
zero and generate an IRQ or FIQ if enabled.