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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

Protected Memory System <strong>Architecture</strong> (PMSA)<br />

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

This is the minimum line length.<br />

For a line length of 8 words: Log2(8) = 3, LineSize entry = 1.<br />

Accessing the currently selected CCSIDR<br />

The CSSELR selects a CCSIDR, see c0, Cache Size Selection Register (CSSELR) on page B4-43. To access<br />

the currently-selected CCSIDR you read the CP15 registers with set to 1, set to c0, set<br />

to c0, <strong>and</strong> set to 0. For example:<br />

MRC p15,1,,c0,c0,0 ; Read current CP15 Cache Size ID Register<br />

Accessing the CCSIDR when the value in CSSELR corresponds to a cache that is not implemented returns<br />

an UNKNOWN value.<br />

B4.6.12 c0, Cache Level ID Register (CLIDR)<br />

The Cache Level ID Register, CLIDR:<br />

identifies the type of cache, or caches, implemented at each level, up to a maximum of eight levels<br />

identifies the Level of Coherency <strong>and</strong> Level of Unification for the cache hierarchy.<br />

The CLIDR is:<br />

a 32-bit read-only register<br />

accessible only in privileged modes<br />

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

The format of the CLIDR is:<br />

31 30 29 27 26 24 23 21 20 18 17 15 14 12 11 9 8 6 5 3 2 0<br />

0 0 LoUU LoC LoUIS Ctype7 Ctype6 Ctype5 Ctype4 Ctype3 Ctype2 Ctype1<br />

Bits [31:30] RAZ.<br />

LoUU, bits [29:27]<br />

LoC, bits [26:24]<br />

Level of Unification Uniprocessor for the cache hierarchy, see Clean, Invalidate, <strong>and</strong> Clean<br />

<strong>and</strong> Invalidate on page B2-11.<br />

Level of Coherency for the cache hierarchy, see Clean, Invalidate, <strong>and</strong> Clean <strong>and</strong> Invalidate<br />

on page B2-11.<br />

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

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

Saved successfully!

Ooh no, something went wrong!