09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.2.3 c0, Cache Type Register<br />

MRC p15, 0, , c0, c0, 0 ; Read Main ID Register<br />

System Control Coprocessor<br />

See c0, Processor Feature Register 0 on page 3-23 - c0, Instruction Set Attributes Registers 5-7<br />

on page 3-39 for more information on the processor features.<br />

The purpose of the Cache Type Register is to determine the instruction and data cache minimum<br />

line length in bytes to enable a range of addresses to be invalidated.<br />

The Cache Type Register is:<br />

• a read-only register<br />

• accessible in privileged modes only.<br />

The contents of the Cache Type Register depend on the specific implementation. Figure 3-2<br />

shows the bit arrangement of the Cache Type Register.<br />

31 28 27 24 23 20 19 16 15 14 13 4 3 0<br />

1<br />

0 0 0 0 0 0 0 DMinLine 0 0 0 0 0 0 0 0 0 0<br />

Cache writeback granule<br />

L1 Ipolicy<br />

Figure 3-2 Cache Type Register format<br />

Table 3-6 shows how the bit values correspond with the Cache Type Register functions.<br />

Bits Field Function<br />

[31:28] - Always read as 4'b1000.<br />

Table 3-7 shows the results of attempted access for each mode.<br />

IMinLine<br />

Table 3-6 Cache Type Register bit functions<br />

[27:24] Cache writeback granule Cache writeback granule. Log2 of the number of words of the maximum size of<br />

memory that can be overwritten as a result of the eviction of a cache entry that has<br />

had a memory location within it modified.<br />

4'b0010 = cache writeback granule size is 4 words.<br />

[23:20] - Always read as 4'b0000.<br />

[19:16] DMinLine Number of words of smallest line length in L1 or L2 data cache:<br />

4'b0100 = sixteen 32-bit word data line length.<br />

[15:14] L1 Ipolicy VIPT instruction cache support:<br />

2'b10 = virtual index, physical tag L1 Ipolicy.<br />

[13: 4] - Always read as b0000000000.<br />

[3:0] IMinLine Number of words of smallest line length in L1 or L2 instruction cache:<br />

4'b0100 = sixteen 32-bit word data line length.<br />

Table 3-7 Results of access to the Cache Type Register a<br />

Secure privileged Nonsecure privileged Secure User Nonsecure User<br />

Read Write Read Write Read Write Read Write<br />

Data Undefined Data Undefined Undefined Undefined Undefined Undefined<br />

<strong>ARM</strong> DDI 0344K Copyright © 2006-2010 <strong>ARM</strong> Limited. All rights reserved. 3-20<br />

ID060510 Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!