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.

B3.12.12 c0, Cache Size ID Registers (CCSIDR)<br />

Virtual Memory System <strong>Architecture</strong> (VMSA)<br />

The Cache Size ID Registers, CCSIDR, provide information about the architecture of the caches.<br />

The CCSIDR registers are:<br />

32-bit read-only registers<br />

accessible only in privileged modes<br />

when the Security Extensions are implemented, Common registers<br />

introduced in <strong>ARM</strong>v7.<br />

One CCSIDR is implemented for each cache that can be accessed by the processor. CSSELR selects which<br />

Cache Size ID Register is accessible, see c0, Cache Size Selection Register (CSSELR) on page B3-95.<br />

The format of a CCSIDR is:<br />

31 30 29 28 27 13 12 3 2 0<br />

W<br />

T<br />

W W<br />

RA<br />

B A<br />

WT, bit [31] Indicates whether the cache level supports Write-Through, see Table B3-25.<br />

WB, bit [30] Indicates whether the cache level supports Write-Back, see Table B3-25.<br />

RA, bit [29] Indicates whether the cache level supports Read-Allocation, see Table B3-25.<br />

WA, bit [28] Indicates whether the cache level supports Write-Allocation, see Table B3-25.<br />

NumSets, bits [27:13]<br />

NumSets Associativity LineSize<br />

(Number of sets in cache) - 1, therefore a value of 0 indicates 1 set in the cache. The number<br />

of sets does not have to be a power of 2.<br />

Associativity, bits [12:3]<br />

(Associativity of cache) - 1, therefore a value of 0 indicates an associativity of 1. The<br />

associativity does not have to be a power of 2.<br />

LineSize, bits [2:0]<br />

(Log2(Number of words in cache line)) -2. For example:<br />

Table B3-25 WT, WB, RA <strong>and</strong> WA bit values<br />

WT, WB, RA or WA bit value Meaning<br />

0 Feature not supported<br />

1 Feature supported<br />

For a line length of 4 words: Log2(4) = 2, LineSize entry = 0.<br />

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

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

Saved successfully!

Ooh no, something went wrong!