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 />

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

System Control Coprocessor<br />

Figure 3-80 GHB array write operation format<br />

LDR R0, =0x3333AAAA;<br />

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

LDR R1, =0x0000020C;<br />

MCR p15, 0, R1, c15, c5, 2; Write I-L1 Data 0 Register to GHB<br />

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

LDR R1, =0x0000020C;<br />

MCR p15, 0, R1, c15, c7, 2; Read GHB into I-L1 Data 0 Register<br />

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

3.2.81 c15, L2 system array debug data registers<br />

31 0<br />

31 10 9 2 1<br />

0<br />

The purpose of the L2 system array debug data registers is to hold the data:<br />

• that is returned from the L2 tag, data, parity/ECC read operations<br />

• for L2 tag, data, parity/ECC write operations.<br />

Because the L2 data arrays are greater than 32-bits wide, the processor contains three registers,<br />

Data 0, Data 1, and Data 2 registers, to hold data when retrieving or registering data as a result<br />

of read/write operations. If the data is greater than 32-bit wide, all of the registers are used to<br />

transfer data.<br />

The Data 0, Data 1, and Data 2 read/write registers are accessible in secure privileged modes<br />

only.<br />

To access the L2 system debug registers, read or write CP15 with:<br />

MCR p15, 0, , c15, c8, 0 ; Write L2 Data 0 Register<br />

MRC p15, 0, , c15, c8, 0 ; Read L2 Data 0 Register<br />

MCR p15, 0, , c15, c8, 1 ; Write L2 Data 1 Register<br />

MRC p15, 0, , c15, c8, 1 ; Read L2 Data 1 Register<br />

MCR p15, 0, , c15, c8, 5 ; Write L2 Data 2 Register<br />

MRC p15, 0, , c15, c8, 5 ; Read L2 Data 2 Register<br />

Figure 3-81 on page 3-137 shows the bit arrangement of the L2 Data 0 Register when retrieving<br />

or registering data as a result of the read/write operations.<br />

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

ID060510 Non-Confidential<br />

Data<br />

Reserved Address<br />

Address<br />

Reserved<br />

Write data<br />

GHB<br />

array

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

Saved successfully!

Ooh no, something went wrong!