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.93 MCRR, MCRR2<br />

Move to Coprocessor from two <strong>ARM</strong> core registers passes the values of two <strong>ARM</strong> core registers to a<br />

coprocessor. If no coprocessor can execute the instruction, an Undefined Instruction exception is generated.<br />

This is a generic coprocessor instruction. The opc1 <strong>and</strong> CRm fields have no functionality defined by the<br />

architecture <strong>and</strong> are free for use by the coprocessor instruction set designer.<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>v5TE*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7 for encoding A1<br />

MCRR ,,,,<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 0 0 0 1 0 0 Rt2 Rt coproc opc1 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 0 0 0 1 0 0 Rt2 Rt coproc opc1 CRm<br />

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

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

if t == 15 || t2 == 15 then UNPREDICTABLE;<br />

if (t == 13 || t2 == 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>v6*, <strong>ARM</strong>v7 for encoding A2<br />

MCRR2 ,,,,<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 0 0 0 1 0 0 Rt2 Rt coproc opc1 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 0 0 0 1 0 0 Rt2 Rt coproc opc1 CRm<br />

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

if t == 15 || t2 == 15 then UNPREDICTABLE;<br />

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

Advanced SIMD <strong>and</strong> VFP See 64-bit transfers between <strong>ARM</strong> core <strong>and</strong> extension registers on<br />

page A7-32<br />

A8-188 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!