System Control
ARM DDI 0500D Copyright © 2013-2014 ARM. All rights reserved. 4-261
ID021414 Non-Confidential
Table 4-236 shows the encoding of the R and W bits that are used, in some Attr<n> encodings
in Table 4-234 on page 4-260and Table 4-235 on page 4-260, to define the read-allocate and
write-allocate policies:
To access the MAIR0:
MRC p15, 0, <Rt>, c10, c2, 0 ; Read MAIR0 into Rt
MCR p15, 0, <Rt>, c10, c2, 0 ; Write Rt to MAIR0
To access the MAIR1:
MRC p15, 0, <Rt>, c10, c2, 1 ; Read MAIR1 into Rt
MCR p15, 0, <Rt>, c10, c2, 1 ; Write Rt to MAIR1
Table 4-236 Encoding of R and W bits in some Attrm fields
R or W Meaning
0 Do not allocate
1 Allocate