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.

Accessing the MIDR<br />

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

To access the MIDR you read the CP15 registers with set to 0, set to c0, set to c0, <strong>and</strong><br />

set to 0. For example:<br />

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

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

The Cache Type Register, CTR, provides information about the architecture of the caches.<br />

The CTR is:<br />

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

accessible only in privileged modes<br />

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

The format of the CTR is changed in <strong>ARM</strong>v7. The new format of the register is indicated by Bit [31:29]<br />

being set to 0b100. For details of the format of the Cache Type Register in versions of the <strong>ARM</strong> architecture<br />

before <strong>ARM</strong>v7 see c0, Cache Type Register (CTR) on page AppxH-35.<br />

In <strong>ARM</strong>v7, the format of the CTR is:<br />

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

1 0 0 0 CWG ERG DminLine L1Ip 0 0 0 0 0 0 0 0 0 0 IminLine<br />

Bits [31:29] Set to 0b100 for the <strong>ARM</strong>v7 register format. Set to 0b000 for the format used in <strong>ARM</strong>v6<br />

<strong>and</strong> earlier.<br />

Bit [28] RAZ.<br />

CWG, bits [27:24]<br />

Cache Writeback Granule. Log2 of the number of words of the maximum size of memory<br />

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

location in it modified.<br />

A value of 0b0000 indicates that the CTR does not provide Cache Writeback Granule<br />

information <strong>and</strong> either:<br />

the architectural maximum of 512 words (2Kbytes) must be assumed<br />

the Cache Writeback Granule can be determined from maximum cache line size<br />

encoded in the Cache Size ID Registers.<br />

Values greater than 0b1001 are reserved.<br />

ERG, bits [27:24]<br />

Exclusives Reservation Granule. Log2 of the number of words of the maximum size of the<br />

reservation granule that has been implemented for the Load-Exclusive <strong>and</strong> Store-Exclusive<br />

instructions. For more information, see Tagging <strong>and</strong> the size of the tagged memory block on<br />

page A3-20.<br />

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

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

Saved successfully!

Ooh no, something went wrong!