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.9 c0, TCM Type Register (TCMTR)<br />

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

The TCM Type Register, TCMTR, provides information about the implementation of the TCM.<br />

The TCMTR 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 />

From <strong>ARM</strong>v7:<br />

TCMTR must be implemented<br />

when the <strong>ARM</strong>v7 format is used, the meaning of register bits [28:0] is IMPLEMENTATION DEFINED<br />

the <strong>ARM</strong>v6 format of the TCM Type Register remains a valid usage model<br />

if no TCMs are implemented the <strong>ARM</strong>v6 format must be used to indicate zero-sized TCMs.<br />

The <strong>ARM</strong>v7 format of the TCMTR is:<br />

31 29 28 0<br />

1 0 0 IMPLEMENTATION DEFINED<br />

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

Note<br />

This field is set to 0b000 for the format used in <strong>ARM</strong>v6 <strong>and</strong> earlier.<br />

Bits [28:0] IMPLEMENTATION DEFINED in the <strong>ARM</strong>v7 register format.<br />

If no TCMs are implemented, the TCMTR must be implemented with this <strong>ARM</strong>v6 format:<br />

31 29 28 19 18 16 15 3 2 0<br />

0 0 0 UNKNOWN 0 0 0 UNKNOWN 0 0 0<br />

For details of the <strong>ARM</strong>v6 optional implementation of the TCM Type Register see c0, TCM Type Register<br />

(TCMTR) on page AppxG-33.<br />

Accessing the TCMTR<br />

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

set to 2. For example:<br />

MRC p15,0,,c0,c0,2 ; Read CP15 TCM Type Register<br />

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

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

Saved successfully!

Ooh no, something went wrong!