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.

31 27 26 22 21<br />

0<br />

Reserved<br />

L1 Data 0<br />

register<br />

L1 Data 1<br />

register<br />

Address<br />

System Control Coprocessor<br />

Figure 3-69 L1 TLB CAM read operation format<br />

Figure 3-70 shows the bit arrangement of the L1 TLB CAM write operations.<br />

TLB CAM array examples<br />

Reserved<br />

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

Figure 3-70 L1 TLB CAM write operation format<br />

LDR R0, =0x03000323;<br />

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

LDR R2, =0x01;<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c0, 2; Write D-L1 Data 0 or 1 Register to D-TLB CAM<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c2, 2; Read D-TLB CAM into data L1 Data 0/1 Register<br />

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

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

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

LDR R0, =0x03000323;<br />

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

LDR R2, =0x01;<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c1, 2; Write I-L1 Data 0 or 1 Register to D-TLB CAM<br />

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

Address<br />

31 0<br />

31 27 26 22 21<br />

0<br />

Reserved<br />

Address<br />

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c3, 2; Read I-TLB CAM into data L1 Data 0/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 />

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

ID060510 Non-Confidential<br />

Data<br />

Data<br />

Reserved<br />

Address<br />

Write data<br />

TLB<br />

array<br />

TLB<br />

array

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

Saved successfully!

Ooh no, something went wrong!