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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.2.79 c15, BTB array operations<br />

Address<br />

Reserved<br />

To write one entry in instruction side L1 data array, for example:<br />

System Control Coprocessor<br />

LDR R0, =0x01234567;<br />

MCR p15, 0, R0, c15, c1, 0; Move R0 to I-L1 Data 0 Register<br />

LDR R2, =0x1B;<br />

MCR p15, 0, R2, c15, c1, 1; Move R0 to I-L1 Data 1 Register<br />

LDR R1, =0x800000D8;<br />

MCR p15, 0, R1, c15, c1, 7; Write I-L1 Data 0 or 1 Register to I-L1 data<br />

To read one entry in instruction side L1 data array, for example:<br />

LDR R1, =0x800000D8;<br />

MCR p15, 0, R1, c15, c3, 7; Read I-L1 data into I-L1 Data 0 or 1 Register<br />

MRC p15, 0, R0, c15, c1, 0; Move I-L1 Data 0 Register to R0<br />

MRC p15, 0, R2, c15, c1, 1; Move I-L1 Data 1 Register to R2<br />

Note<br />

The granularity of the dirty bits is so that two sets of dirty bits are updated for each CP15 L1<br />

DATA array write operation. A doubleword set of dirty bits are updated so that if word 0 or word<br />

1 is being updated, then the D-bit and D-bit parity bits are updated for both word 0 and word 1.<br />

The purpose of the Branch Target Buffer (BTB) array operations is to:<br />

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

• write into the system debug data registers and into the BTB array.<br />

The BTB array operation is accessible in secure privileged modes only.<br />

Figure 3-77 shows the bit arrangement of the BTB array read operation.<br />

31 30 29 11 10<br />

3 2 0<br />

Reserved Address<br />

Address<br />

Reserved<br />

Figure 3-77 BTB array read operation format<br />

Figure 3-78 on page 3-135 shows the bit arrangement of the BTB array write operation.<br />

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

ID060510 Non-Confidential<br />

BTB<br />

array

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

Saved successfully!

Ooh no, something went wrong!