09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.2.83 c15, L2 tag array operations<br />

To read one entry from the L2 parity/ECC array, for example:<br />

System Control Coprocessor<br />

LDR R1, =0x400000C0 ;<br />

MCR p15, 0, R1, c15, c9, 4; Read L2 parity/ECC RAM into L2 Data 0 Register<br />

MRC p15, 0, R2, c15, c8, 0; Move L2 Data 0 Register to R2<br />

The purpose of the L2 tag array operations is to:<br />

• read the L2 tag array contents and write into the system debug data registers<br />

• write into the system debug data registers and copy into the L2 tag array.<br />

The L2 tag array operation is accessible in secure privileged modes only. You can determine the<br />

value of N in Figure 3-86 and Figure 3-87 from Table 3-163 on page 3-139.<br />

Figure 3-86 shows the bit arrangement of the L2 tag array read operation.<br />

31 29 28<br />

N+1 N<br />

6 5 0<br />

Address<br />

Reserved Address Reserved<br />

Figure 3-86 L2 tag array read operation format<br />

Note<br />

In Figure 3-86, bits [31:29] also correspond to the L2 cache way numbers.<br />

Figure 3-87 shows the bit arrangement of the L2 tag array write operation.<br />

L2 Data 0 register Tag<br />

Reserved<br />

Address<br />

To write one entry to the L2 tag array, for example:<br />

Figure 3-87 L2 tag array write operation format<br />

LDR R0, =0x000020D1;<br />

MCR p15, 0, R0, c15, c8, 0; Move R0 to L2 Data 0 Register<br />

LDR R1, =0x400000C0;<br />

MCR p15, 0, R1, c15, c8, 2; Write L2 Data 0 Register to L2 tag RAM<br />

To read one entry from the L2 tag array, for example:<br />

LDR R1, =0x400000C0;<br />

MCR p15, 0, R1, c15, c9, 2; Read L2 tag RAM into L2 Data 0 Register<br />

MRC p15, 0, R2, c15, c8, 0; Move L2 Data 0 Register to R2<br />

Address<br />

Reserved<br />

<strong>ARM</strong> DDI 0344K Copyright © 2006-2010 <strong>ARM</strong> Limited. All rights reserved. 3-140<br />

ID060510 Non-Confidential<br />

Tag<br />

array<br />

31 N+1 N 8 7 5 4 2 1 0<br />

31 29 28<br />

N+1 N<br />

6 5 0<br />

Reserved Address<br />

Reserved<br />

Data<br />

Address<br />

Write data<br />

Data<br />

Tag<br />

array

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

Saved successfully!

Ooh no, something went wrong!