3.2.3
c0, Cache Type Register
Bits
Field name
[31:29]
-
[28:25]
Ctype
[24]
S bit
ARM DDI 0301H
ID012310
To use the Main ID Register read CP15 with:
•
Opcode_1 set to 0
•
CRn set to c0
•
CRm set to c0
•
Opcode_2 set to 0.
For example:
MRC p15,0,<Rd>,c0,c0,0 ;Read Main ID Register
For more information on the processor features, see c0, CPUID registers on page 3-26.
The purpose of the Cache Type Register is to provide information about the size and architecture
of the cache for the operating system. This enables the operating system to establish how to
clean the cache and how to lock it down. Inclusion of this register enables RTOS vendors to
produce future-proof versions of their operating systems.
The Cache Type Register is:
•
in CP15 c0
•
a 32-bit read only register, common to Secure and Non-secure worlds
•
accessible in privileged modes only.
All ARMv4T and later cached processors contain this register. Figure 3-11 shows the
arrangement of bits in the Cache Type Register.
31 30 29 28
25 24 23
0
0 0
Ctype
S
Table 3-6 lists how the bit values correspond with the Cache Type Register functions.
Function
0
The Cache type and Separate bits provide information about the cache architecture.
b1110, indicates that the ARM1176JZF-S processor supports:
•
write back cache
•
Format C cache lockdown
•
Register 7 cache cleaning operations.
S = 1, indicates that the processor has separate instruction and data caches and not a unified
cache.
Copyright © 2004-2009 ARM Limited. All rights reserved.
Non-Confidential, Unrestricted Access
22 21
18 17
15 14 13
P 0
Size
Assoc
M Len
Dsize
Figure 3-11 Cache Type Register format
Table 3-6 Cache Type Register bit functions
System Control Coprocessor
12 11
10 9
6 5
P 0
Size
Assoc
Isize
3 2 1
0
M Len
3-21