05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

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.

c0, Cache Type Register (CTR)<br />

<strong>ARM</strong>v4 <strong>and</strong> <strong>ARM</strong>v5 Differences<br />

The format of the Cache Type Register is significantly different from the <strong>ARM</strong>v7 definition described in c0,<br />

Cache Type Register (CTR) on page B3-83. However, the general properties described by the register, <strong>and</strong><br />

the access rights for the register, are unchanged.<br />

This section describes the implementation of the CP15 c0 Cache Type Register <strong>and</strong> is applicable to a VMSA<br />

or PMSA implementation.<br />

The Cache Type Register supplies the following details about the level 1 cache implementation:<br />

whether there is a unified cache or separate instruction <strong>and</strong> data caches<br />

the cache size, line length, <strong>and</strong> associativity<br />

whether it is a Write-Through cache or a Write-Back cache<br />

the cache cleaning <strong>and</strong> lockdown capabilities.<br />

The format of the Cache Type Register is:<br />

31 29 28 25 24 23 12 11 0<br />

0 0 0 Ctype S DSize ISize<br />

Ctype, bits [28:25]<br />

Cache type field. Specifies details of the cache not indicated by the S bit <strong>and</strong> the Dsize <strong>and</strong><br />

Isize fields. Table H-13 shows the encoding of this field. All values not specified in the table<br />

are reserved.<br />

S, bit [24] Separate caches bit. The meaning of this bit is:<br />

0 Unified cache<br />

1 Separate instruction <strong>and</strong> data caches.<br />

If S == 0, the Isize <strong>and</strong> Dsize fields both describe the unified cache, <strong>and</strong> must be identical.<br />

Dsize, bits [23:12]<br />

Specifies the size, line length <strong>and</strong> associativity of the data cache, or of the unified cache if<br />

S == 0. For details of the encoding see Cache size fields on page AppxH-36.<br />

Isize, bits [11:0]<br />

Specifies the size, line length <strong>and</strong> associativity of the instruction cache, or of the unified<br />

cache if S == 0. For details of the encoding see Cache size fields on page AppxH-36.<br />

Table H-13 shows the Ctype values that can be used in the CTR:<br />

Table H-13 Cache type values<br />

Ctype a Cache method Cache lockdown b<br />

0b0000 Write-Through Not supported<br />

0b0010 Write-Back Not supported<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. AppxH-35

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

Saved successfully!

Ooh no, something went wrong!