<?xml version="1.0" ?><?xml-stylesheet type="text/xsl" encoding="UTF-8" href="iform.xsl" version="1.0"?><!DOCTYPE instructionsection  PUBLIC '-//ARM//DTD instructionsection //EN'  'iform-p.dtd'><!-- Copyright (c) 2010-2026 Arm Limited or its affiliates. All rights reserved. --><!-- This document is Non-Confidential. This document may only be used and distributed in accordance with the terms of the agreement entered into by Arm and the party that Arm delivered this document to. --><instructionsection id="MCR" title="MCR -- AArch32" type="instruction">
  <docvars>
    <docvar key="instr-class" value="general"/>
    <docvar key="mnemonic" value="MCR"/>
  </docvars>
  <heading>MCR</heading>
  <desc>
    <brief>
      <para>Move to System register from general-purpose register or execute a System instruction</para>
    </brief>
    <authored>
      <para>Move to System register from general-purpose register or execute a System instruction.
This instruction copies the value of a general-purpose register to a
System register, or executes a System instruction.</para>
      <para>The System register and System instruction descriptions identify
valid encodings for this instruction. Other encodings are
<arm-defined-word>UNDEFINED</arm-defined-word>. For more information see
<xref linkend="ARMARM_CFIDGFBF">About the AArch32 System register interface</xref>
and <xref linkend="ARMARM_BABDFCJB">General behavior of System registers</xref>.</para>
      <para>In an implementation that includes EL2, <instruction>MCR</instruction> accesses to System
registers can be trapped to Hyp mode, meaning that an
attempt to execute an <instruction>MCR</instruction> instruction in a Non-secure mode
other than Hyp mode, that would be permitted in the absence of the
Hyp trap controls, generates a Hyp Trap exception.  For more
information, see <xref linkend="ARMARM_BEIDFAFD">EL2 configurable instruction
enables, disables, and traps</xref>.</para>
      <para>Because of the range of possible traps to Hyp mode, the <instruction>MCR</instruction>
pseudocode does not show these possible traps.</para>
    </authored>
    <encodingnotes>
      <para>For more information about the <arm-defined-word>CONSTRAINED UNPREDICTABLE</arm-defined-word> behavior of this instruction, see <xref linkend="ARMARM_CJAEGDJC">Architectural Constraints on UNPREDICTABLE behaviors</xref>.</para>
    </encodingnotes>
    <syntaxnotes>
      <para>The possible values of { <syntax>&lt;coproc&gt;</syntax>, <syntax>&lt;opc1&gt;</syntax>, <syntax>&lt;CRn&gt;</syntax>, <syntax>&lt;CRm&gt;</syntax>, <syntax>&lt;opc2&gt;</syntax> } encode the entire System register and System instruction encoding space. Not all of this space is allocated, and the System register and System instruction descriptions identify the allocated encodings.</para>
    </syntaxnotes>
  </desc>
  <alias_list howmany="0"/>
  <classes>
    <classesintro count="2">
      <txt>It has encodings from the following instruction sets:</txt>
      <txt> A32 (</txt>
      <a href="#iclass_a1">A1</a>
      <txt>)</txt>
      <txt> and </txt>
      <txt> T32 (</txt>
      <a href="#iclass_t1">T1</a>
      <txt>)</txt>
      <txt>.</txt>
    </classesintro>
    <iclass name="A1" oneof="2" id="iclass_a1" no_encodings="1" isa="A32">
      <docvars>
        <docvar key="armarmheading" value="A1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="A32"/>
        <docvar key="mnemonic" value="MCR"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="32" psname="A32.cops_as.sys_mov32.movcpgp32.MCR_A1" tworows="1">
        <box hibit="31" width="4" name="cond" usename="1" settings="4" constraint="!= 1111">
          <c colspan="4">!= 1111</c>
        </box>
        <box hibit="27" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="25" width="2" settings="2">
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="23" width="3" name="opc1" usename="1">
          <c colspan="3"/>
        </box>
        <box hibit="20" name="L" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="19" width="4" name="CRn" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="15" width="4" name="Rt" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="11" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="10" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="8" width="1" name="cp15" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="7" width="3" name="opc2" usename="1">
          <c colspan="3"/>
        </box>
        <box hibit="4" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="3" width="4" name="CRm" usename="1">
          <c colspan="4"/>
        </box>
      </regdiagram>
      <encoding name="MCR_A1" oneofinclass="1" oneof="2" label="">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic" value="MCR"/>
        </docvars>
        <asmtemplate><text>MCR{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  </text><a hover="Is the System register encoding space, " link="coproc_option">&lt;coproc&gt;</a><text>, {#}</text><a hover="Is the opc1 parameter within the System register encoding space, in the range 0 to 7, encoded in the &quot;opc1&quot; field." link="opc1">&lt;opc1&gt;</a><text>, </text><a hover="Is the general-purpose register to be transferred, encoded in the &quot;Rt&quot; field." link="Rt">&lt;Rt&gt;</a><text>, </text><a hover="Is the CRn parameter within the System register encoding space, in the range c0 to c15, encoded in the &quot;CRn&quot; field." link="CRn">&lt;CRn&gt;</a><text>, </text><a hover="Is the CRm parameter within the System register encoding space, in the range c0 to c15, encoded in the &quot;CRm&quot; field." link="CRm">&lt;CRm&gt;</a><text>{, {#}</text><a hover="Is the opc2 parameter within the System register encoding space, in the range 0 to 7, encoded in the &quot;opc2&quot; field." link="opc2">&lt;opc2&gt;</a><text>}</text></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="A32.cops_as.sys_mov32.movcpgp32.MCR_A1" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">let t : integer = UInt(Rt);
let cp : integer = if cp15 == '0' then 14 else 15;
// Armv8-A removes UNPREDICTABLE for R13
if t == 15  then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
    </iclass>
    <iclass name="T1" oneof="2" id="iclass_t1" no_encodings="1" isa="T32">
      <docvars>
        <docvar key="armarmheading" value="T1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="T32"/>
        <docvar key="mnemonic" value="MCR"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="16x2" psname="T32.w.cpaf.sys_mov32.cp_mov32.MCR_T1" tworows="1">
        <box hibit="31" width="3" settings="3">
          <c>1</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="28" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="27" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="25" width="2" settings="2">
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="23" width="3" name="opc1" usename="1">
          <c colspan="3"/>
        </box>
        <box hibit="20" name="L" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="19" width="4" name="CRn" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="15" width="4" name="Rt" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="11" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="10" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="8" width="1" name="cp15" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="7" width="3" name="opc2" usename="1">
          <c colspan="3"/>
        </box>
        <box hibit="4" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="3" width="4" name="CRm" usename="1">
          <c colspan="4"/>
        </box>
      </regdiagram>
      <encoding name="MCR_T1" oneofinclass="1" oneof="2" label="">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="MCR"/>
        </docvars>
        <asmtemplate><text>MCR{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="c__5">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  </text><a hover="Is the System register encoding space, " link="coproc_option">&lt;coproc&gt;</a><text>, {#}</text><a hover="Is the opc1 parameter within the System register encoding space, in the range 0 to 7, encoded in the &quot;opc1&quot; field." link="opc1">&lt;opc1&gt;</a><text>, </text><a hover="Is the general-purpose register to be transferred, encoded in the &quot;Rt&quot; field." link="Rt">&lt;Rt&gt;</a><text>, </text><a hover="Is the CRn parameter within the System register encoding space, in the range c0 to c15, encoded in the &quot;CRn&quot; field." link="CRn">&lt;CRn&gt;</a><text>, </text><a hover="Is the CRm parameter within the System register encoding space, in the range c0 to c15, encoded in the &quot;CRm&quot; field." link="CRm">&lt;CRm&gt;</a><text>{, {#}</text><a hover="Is the opc2 parameter within the System register encoding space, in the range 0 to 7, encoded in the &quot;opc2&quot; field." link="opc2">&lt;opc2&gt;</a><text>}</text></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="T32.w.cpaf.sys_mov32.cp_mov32.MCR_T1" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">let t : integer = UInt(Rt);
let cp : integer = if cp15 == '0' then 14 else 15;
// Armv8-A removes UNPREDICTABLE for R13
if t == 15  then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
    </iclass>
  </classes>
  <explanations scope="all">
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="c__5">&lt;c&gt;</symbol>
      <account encodedin="cond">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="qw_option">&lt;q&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="coproc_option">&lt;coproc&gt;</symbol>
      <definition encodedin="cp15">
        <intro>Is the System register encoding space, </intro>
        <table class="valuetable">
          <tgroup cols="2">
            <thead>
              <row>
                <entry class="bitfield">cp15</entry>
                <entry class="symbol">&lt;coproc&gt;</entry>
              </row>
            </thead>
            <tbody>
              <row>
                <entry class="bitfield">0</entry>
                <entry class="symbol">p14</entry>
              </row>
              <row>
                <entry class="bitfield">1</entry>
                <entry class="symbol">p15</entry>
              </row>
            </tbody>
          </tgroup>
        </table>
      </definition>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="opc1">&lt;opc1&gt;</symbol>
      <account encodedin="opc1">
        <intro>
          <para>Is the opc1 parameter within the System register encoding space, in the range 0 to 7, encoded in the &quot;opc1&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="Rt">&lt;Rt&gt;</symbol>
      <account encodedin="Rt">
        <intro>
          <para>Is the general-purpose register to be transferred, encoded in the &quot;Rt&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="CRn">&lt;CRn&gt;</symbol>
      <account encodedin="CRn">
        <intro>
          <para>Is the CRn parameter within the System register encoding space, in the range c0 to c15, encoded in the &quot;CRn&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="CRm">&lt;CRm&gt;</symbol>
      <account encodedin="CRm">
        <intro>
          <para>Is the CRm parameter within the System register encoding space, in the range c0 to c15, encoded in the &quot;CRm&quot; field.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="MCR_A1, MCR_T1" symboldefcount="1">
      <symbol link="opc2">&lt;opc2&gt;</symbol>
      <account encodedin="opc2">
        <intro>
          <para>Is the opc2 parameter within the System register encoding space, in the range 0 to 7, encoded in the &quot;opc2&quot; field.</para>
        </intro>
      </account>
    </explanation>
  </explanations>
  <ps_section howmany="1">
    <ps name="A32.cops_as.sys_mov32.movcpgp32.MCR_A1" sections="1" secttype="Operation">
      <pstext mayhavelinks="1" section="Execute" rep_section="execute">if <a link="func_ConditionPassed_0" file="shared_pseudocode.xml">ConditionPassed</a>() then
    EncodingSpecificOperations();
    AArch32_SysRegWrite(cp, <a link="func_ThisInstr_0" file="shared_pseudocode.xml">ThisInstr</a>(), t);
end;</pstext></ps>
  </ps_section>
  <timestamp>2026-03-26 20:27:25</timestamp>
  <commit_id>2026-03_rel</commit_id>
</instructionsection>