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.

<strong>ARM</strong>v6 Differences<br />

G.6 System level memory model<br />

The pseudocode listed in Aligned memory accesses on page B2-31 <strong>and</strong> Unaligned memory accesses on<br />

page B2-32 covers the alignment behavior of all architecture variants from <strong>ARM</strong>v4. <strong>ARM</strong>v6 supports two<br />

alignment models, <strong>and</strong> the SCTLR.U bit controls the alignment configuration. For more information, see<br />

Alignment on page AppxG-6.<br />

Note<br />

<strong>ARM</strong>v4 <strong>and</strong> <strong>ARM</strong>v5 only support the SCTLR.U = 0 alignment model.<br />

<strong>ARM</strong>v7 only supports the SCTLR.U = 1 alignment model.<br />

The following sections describe the system level memory model:<br />

Endian configuration <strong>and</strong> control<br />

Cache support on page AppxG-21<br />

Tightly Coupled Memory (TCM) support on page AppxG-23<br />

Virtual memory support on page AppxG-24<br />

Protected Memory System <strong>Architecture</strong> (PMSA) on page AppxG-28.<br />

G.6.1 Endian configuration <strong>and</strong> control<br />

Endian control <strong>and</strong> configuration is supported by two bits in the CP15 SCTlR, <strong>and</strong> a PSR flag bit:<br />

SCTLR.B BE-32 configuration bit. This bit must be RAZ/WI when BE-32 is not supported. BE-32 is<br />

the legacy big endian model. See Endian support on page AppxG-7.<br />

SCTLR.EE This bit is used to update CPSR.E on exception entry <strong>and</strong> provide endian model information<br />

for translation table walks.<br />

CPSR.E The flag is updated on exception entry to the value of the SCTLR.EE bit. Otherwise it is<br />

controlled by the SETEND instruction. Writing the bit using an MSR instruction is deprecated in<br />

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

Note<br />

BE <strong>and</strong> BE-32 are mutually exclusive. When SCTLR.B is set, SCTLR.EE <strong>and</strong> CPSR.E must be clear,<br />

otherwise the endian behavior is UNPREDICTABLE.<br />

Endian behavior can be configured on reset using the CFGEND[1:0] pins. Table G-3 on page AppxG-21<br />

defines the CFGEND[1:0] encoding <strong>and</strong> associated configurations.<br />

AppxG-20 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!