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.

Instruction L1<br />

Data 0 register<br />

Instruction L1<br />

Data 1 register<br />

3.2.80 c15, GHB array operations<br />

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

System Control Coprocessor<br />

31 28 27<br />

0<br />

Reserved<br />

31 30 29 11 10<br />

3 2 0<br />

Address<br />

Reserved<br />

Figure 3-78 BTB array write operation format<br />

LDR R0, =0x01234567;<br />

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

LDR R2, =0x0DDFFFFF;<br />

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

LDR R1, =0x40000408;<br />

MCR p15, 0, R1, c15, c5, 3; Write I-L1 Data 0 or 1 Register to BTB<br />

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

LDR R1, =0x40000408;<br />

MCR p15, 0, R1, c15, c7, 3; Read BTB 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 />

The purpose of the Global History Buffer (GHB) array operation is to:<br />

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

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

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

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

Figure 3-79 GHB array read operation format<br />

Figure 3-80 on page 3-136 shows the bit arrangement of the GHB array write operation.<br />

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

ID060510 Non-Confidential<br />

Data<br />

Data<br />

Reserved Address<br />

31 10 9 2 1<br />

0<br />

Reserved Address<br />

Address<br />

Reserved<br />

Address<br />

Reserved<br />

Write data<br />

BTB<br />

array<br />

GHB<br />

array

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

Saved successfully!

Ooh no, something went wrong!