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.

Common Memory System <strong>Architecture</strong> Features<br />

// DefaultTEXDecode()<br />

// ==================<br />

MemoryAttributes DefaultTEXDecode(bits(5) texcb, bit S)<br />

MemoryAttributes memattrs;<br />

case texcb of<br />

when ‘00000’<br />

memattrs.type = MemType_StronglyOrdered;<br />

memattrs.innerattrs = ‘00’; // Non-cacheable<br />

memattrs.outerattrs = ‘00’; // Non-cacheable<br />

memattrs.shareable = TRUE;<br />

when ‘00001’<br />

memattrs.type = MemType_Device;<br />

memattrs.innerattrs = ‘00’; // Non-cacheable<br />

memattrs.outerattrs = ‘00’; // Non-cacheable<br />

memattrs.shareable = TRUE;<br />

when ‘0001x’, ‘00100’<br />

memattrs.type = MemType_Normal;<br />

memattrs.innerattrs = texcb;<br />

memattrs.outerattrs = texcb;<br />

memattrs.shareable = (S == ‘1’);<br />

when ‘00110’<br />

IMPLEMENTATION_DEFINED setting of memattrs;<br />

when ‘00111’<br />

memattrs.type = MemType_Normal;<br />

memattrs.innerattrs = ‘01’; // Write-back write-allocate cacheable<br />

memattrs.outerattrs = ‘01’; // Write-back write-allocate cacheable<br />

memattrs.shareable = (S == ‘1’);<br />

when ‘01000’<br />

memattrs.type = MemType_Device;<br />

memattrs.innerattrs = ‘00’; // Non-cacheable<br />

memattrs.outerattrs = ‘00’; // Non-cacheable<br />

memattrs.shareable = FALSE;<br />

when ‘1xxxx’<br />

memattrs.type = MemType_Normal;<br />

memattrs.innerattrs = texcb;<br />

memattrs.outerattrs = texcb;<br />

memattrs.shareable = (S == ‘1’);<br />

otherwise<br />

UNPREDICTABLE;<br />

memattrs.outershareable = memattrs.shareable;<br />

return memattrs;<br />

B2-38 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!