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.15 c0, Cache Size Selection Register (CSSELR)<br />

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

The Cache Size Selection Register, CSSELR, selects the current CCSIDR. An <strong>ARM</strong>v7 implementation<br />

must include a CCSIDR for every implemented cache that is under the control of the processor. The<br />

CSSELR identifies which CP1CSID register can be accessed, by specifying, for the required cache:<br />

the cache level<br />

the cache type, either:<br />

— instruction cache.<br />

— Data cache. The data cache argument is also used for a unified cache.<br />

The CSSELR is:<br />

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

accessible only in privileged modes<br />

when the Security Extensions are implemented, a Banked register<br />

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

The format of the CSSELR is:<br />

31 4 3<br />

1<br />

UNK/SBZP<br />

Level<br />

Bits [31:4] UNK/SBZP.<br />

Level, bits [3:1]<br />

InD, bit [0]<br />

Cache level of required cache. Permitted values are from 0b000, indicating Level 1 cache,<br />

to 0b110 indicating Level 7 cache.<br />

Instruction not Data bit. Permitted values are:<br />

0 Data or unified cache<br />

1 Instruction cache.<br />

If CSSELR is set to indicate a cache that is not implemented, the result of reading CCSIDR is<br />

UNPREDICTABLE.<br />

Accessing CSSELR<br />

To access CSSELR you read or write the CP15 registers with set to 2, set to c0, set to c0,<br />

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

MRC p15,2,,c0,c0,0 ; Read Cache Size Selection Register<br />

MCR p15,2,,c0,c0,0 ; Write Cache Size Selection Register<br />

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

InD<br />

0

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

Saved successfully!

Ooh no, something went wrong!