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.28 CDP, CDP2<br />

Coprocessor Data Processing tells a coprocessor to perform an operation that is independent of <strong>ARM</strong> core<br />

registers <strong>and</strong> memory. If no coprocessor can execute the instruction, an Undefined Instruction exception is<br />

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, CRd, CRn,<br />

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

CDP ,,,,,<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 CRn CRd coproc opc2 0 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 CRn CRd coproc opc2 0 CRm<br />

if coproc == ‘101x’ then SEE “VFP instructions”;<br />

cp = UInt(coproc);<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 />

CDP2 ,,,,,<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 CRn CRd coproc opc2 0 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 CRn CRd coproc opc2 0 CRm<br />

cp = UInt(coproc);<br />

VFP instructions See VFP data-processing instructions on page A7-24<br />

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