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.

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

1 If a TLB miss occurs when TTBR1 is used no translation table walk is<br />

performed <strong>and</strong> a Section Translation fault is returned.<br />

PD0, bit [4], when Security Extensions are implemented<br />

Translation table walk Disable bit for TTBR0. This bit controls whether a translation table<br />

walk is performed on a TLB miss when TTBR0 is used. The meanings of the possible values<br />

of this bit are equivalent to those for the PD1 bit.<br />

Bits [5:4], when Security Extensions are not implemented<br />

UNK/SBZP.<br />

N, bits [2:0] Indicate the width of the base address held in TTBR0. In TTBR0, the base address field is<br />

bits [31:14-N]. The value of N also determines:<br />

whether TTBR0 or TTBR1 is used as the base address for translation table walks.<br />

the size of the translation table pointed to by TTBR0.<br />

N can take any value from 0 to 7, that is, from 0b000 to 0b111.<br />

When N has its reset value of 0, the translation table base is compatible with <strong>ARM</strong>v5 <strong>and</strong><br />

<strong>ARM</strong>v6.<br />

Determining which TTBR to use, <strong>and</strong> the TTBR0 translation table size<br />

When an MVA is not found in the TLB, the value of TTBCR.N determines whether TTBR0 or TTBR1 is<br />

used as the base address for the translation table walk in memory:<br />

if N == 0 then always use TTBR0<br />

if N > 0 then:<br />

— if bits [31:32-N] of the MVA are all zero then use TTBR0<br />

— otherwise use TTBR1.<br />

The size of the first-level translation tables accessed by TTBR0 depends on the value of TTBCR.N as shown<br />

in Table B3-29:<br />

Table B3-29 Value of N field <strong>and</strong> the size of the TTBR0 translation table<br />

TTBCR.N Size of TTBR0 translation table<br />

0b000 16KB<br />

0b001 8KB<br />

0b010 4KB<br />

0b011 2KB<br />

0b100 1KB<br />

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

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

Saved successfully!

Ooh no, something went wrong!