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.

<strong>ARM</strong>v4 <strong>and</strong> <strong>ARM</strong>v5 Differences<br />

H.7.11 c9, cache lockdown support<br />

One problem with caches is that although they normally improve average access time to data <strong>and</strong><br />

instructions, they usually increase the worst-case access time. This is because:<br />

There is a delay before the system determines that a cache miss has occurred <strong>and</strong> starts the main<br />

memory access.<br />

If a Write-Back cache is being used, there might be more delay because of the requirement to store<br />

the contents of the cache line that is being reallocated.<br />

A whole cache line is loaded from main memory, not only the data requested by the <strong>ARM</strong> processor.<br />

In real-time applications, this increase in the worst-case access time can be significant.<br />

Cache lockdown is an optional feature designed to alleviate this. It enables critical code <strong>and</strong> data, for<br />

example high priority interrupt routines <strong>and</strong> the data they access, to be loaded into the cache in such a way<br />

that the cache lines containing them are not subsequently reallocated. This ensures that all subsequent<br />

accesses to this code <strong>and</strong> data are cache hits <strong>and</strong> therefore complete as quickly as possible.<br />

The <strong>ARM</strong> architecture specifies four formats for the cache lockdown mechanism. These are known as<br />

Format A, Format B, Format C, <strong>and</strong> Format D. The Cache Type Register contains information on the<br />

lockdown mechanism adopted. See c0, Cache Type Register (CTR) on page AppxH-35.<br />

Formats A, B, <strong>and</strong> C all operate on cache ways. Format D is a cache entry locking mechanism. Table H-24<br />

summarizes the CP15 provisions for format A, B, C, <strong>and</strong> D lockdown mechanisms.<br />

From <strong>ARM</strong>v7, cache lockdown is IMPLEMENTATION DEFINED with no recommended formats or<br />

mechanisms on how it is achieved other than reserved CP15 register space. See Cache lockdown on<br />

page B2-8 <strong>and</strong> CP15 c9, Cache <strong>and</strong> TCM lockdown registers <strong>and</strong> performance monitors on page B3-141.<br />

Register or operation<br />

Table H-23 TLB operation support (continued)<br />

Operation CRn opc1 CRm opc2<br />

Invalidate Data TLB Entry (by MVA) c8 0 c6 1<br />

Invalidate Unified TLB c8 0 c7 0<br />

Invalidate Unified TLB Entry (by MVA) c8 0 c7 1<br />

Table H-24 cache lockdown register support<br />

Lockdown<br />

formats<br />

CRn opc1 CRm opc2<br />

Data or unified Cache Lockdown Register, DCLR A, B, <strong>and</strong> C c9 0 c0 0<br />

Instruction Cache Lockdown Register, ICLR A, B, <strong>and</strong> C c9 0 c0 1<br />

Fetch <strong>and</strong> lock instruction cache line D c9 0 c5 0<br />

AppxH-52 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!