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.

TLB ATTR array examples<br />

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

LDR R0, =0x252E;<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c0, 3; Write D-L1 Data 0 Register to D-TLB ATTR<br />

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

System Control Coprocessor<br />

LDR R1, =0x00C00000;<br />

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

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

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

LDR R0, =0x252E;<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c1, 3; Write I-L1 Data 0 Register to I-TLB ATTR<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c3, 3; Read I-TLB ATTR into data L1 Data 0 Register<br />

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

TLB PA array examples<br />

3.2.76 c15, L1 HVAB array operations<br />

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

LDR R0, =0x05730000;<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c0, 4; Write D-L1 Data 0 Register to D-TLB PA<br />

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

LDR R1, =0x00C00000;<br />

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

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

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

LDR R0, =0x05730000;<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c1, 4; Write I-L1 Data 0 Register to I-TLB PA<br />

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

LDR R1, =0x00C00000;<br />

MCR p15, 0, R1, c15, c3, 4; Read I-TLB PA into data L1 Data 0 Register<br />

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

The purpose of the L1 HVAB array operations is to:<br />

• read the L1 HVAB array contents and write to the system debug data registers<br />

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

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

ID060510 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!