05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

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

A8.6.100 MRC, MRC2<br />

Move to <strong>ARM</strong> core register from Coprocessor causes a coprocessor to transfer a value to an <strong>ARM</strong> core<br />

register or to the condition flags. If no coprocessor can execute the instruction, an Undefined Instruction<br />

exception is generated.<br />

This is a generic coprocessor instruction. Some of the fields have no functionality defined by the architecture<br />

<strong>and</strong> are free for use by the coprocessor instruction set designer. These fields are the opc1, opc2, CRn, <strong>and</strong><br />

CRm fields.<br />

For more information about the coprocessors see Coprocessor support on page A2-68.<br />

Encoding T1 / A1 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7 for encoding T1<br />

<strong>ARM</strong>v4*, <strong>ARM</strong>v5T*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7 for encoding A1<br />

MRC ,,,,{,}<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 1 0 1 1 1 0 opc1 1 CRn Rt coproc opc2 1 CRm<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

cond 1 1 1 0 opc1 1 CRn Rt coproc opc2 1 CRm<br />

if coproc == ‘101x’ then SEE “Advanced SIMD <strong>and</strong> VFP”;<br />

t = UInt(Rt); cp = UInt(coproc);<br />

if t == 13 && (CurrentInstrSet() != InstrSet_<strong>ARM</strong>) then UNPREDICTABLE;<br />

Encoding T2 / A2 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7 for encoding T2<br />

<strong>ARM</strong>v5T*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7 for encodingA2<br />

MRC2 ,,,,{,}<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 1 1 1 1 1 0 opc1 1 CRn Rt coproc opc2 1 CRm<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 1 1 1 1 1 0 opc1 1 CRn Rt coproc opc2 1 CRm<br />

t = UInt(Rt); cp = UInt(coproc);<br />

if t == 13 && (CurrentInstrSet() != InstrSet_<strong>ARM</strong>) then UNPREDICTABLE;<br />

Advanced SIMD <strong>and</strong> VFP See 8, 16, <strong>and</strong> 32-bit transfer between <strong>ARM</strong> core <strong>and</strong> extension registers<br />

on page A7-31<br />

A8-202 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

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

Saved successfully!

Ooh no, something went wrong!