<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE register_page SYSTEM "registers.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. -->
<!--The data contained in this document is preliminary and subject to change or correction following further review. -->
<?xml-stylesheet href="one_register.xsl" type="text/xsl" ?>







<register_page>
  <registers>
  
    <register execution_state="AArch64" is_register="True" is_internal="True" is_stub_entry="False">
      <reg_short_name>ZCR_EL2</reg_short_name>
        
        <reg_long_name>SVE Control Register (EL2)</reg_long_name>



      
            <reg_condition otherwise="UNDEFINED">when FEAT_SVE is implemented</reg_condition>
      




          <reg_reset_value></reg_reset_value>

      <reg_mappings>
        




      </reg_mappings>

        <reg_purpose>
          
    
      <purpose_text>
        <para>This register controls aspects of SVE visible at Exception levels EL2, EL1, and EL0.</para>
      </purpose_text>

        </reg_purpose>

      <reg_groups>
          <reg_group>Other</reg_group>
      </reg_groups>
      <reg_configuration>
        
    
      <configuration_text>
        <para>This register has no effect when EL2 is not enabled in the current Security state, or when FEAT_SME is implemented and the PE is in Streaming SVE mode.</para>
      </configuration_text>

      </reg_configuration>
      
      
        
      <reg_attributes>
          
    
      <attributes_text>
        <para>ZCR_EL2 is a 64-bit register.</para>
      </attributes_text>

      </reg_attributes>
      <reg_fieldsets>
        






<fields id="fieldset_0" length="64">
  <text_before_fields/>
  <field id="fieldset_0-63_9" has_partial_fieldset="False" is_linked_to_partial_fieldset="False" is_access_restriction_possible="False" is_variable_length="False" is_constant_value="False" is_partial_field="False" is_conditional_field_name="False" rwtype="RES0">
    <field_msb>63</field_msb>
    <field_lsb>9</field_lsb>
    <rel_range>63:9</rel_range>
    <field_description order="before"/>
    <field_description order="before">
      <para>Reserved, <arm-defined-word>RES0</arm-defined-word>.</para>
    </field_description>
  </field>
  <field id="fieldset_0-8_4" has_partial_fieldset="False" is_linked_to_partial_fieldset="False" is_access_restriction_possible="False" is_variable_length="False" is_constant_value="False" is_partial_field="False" is_conditional_field_name="False" rwtype="RAZ/WI">
    <field_msb>8</field_msb>
    <field_lsb>4</field_lsb>
    <rel_range>8:4</rel_range>
    <field_description order="before"/>
    <field_description order="before">
      <para>Reserved, RAZ/WI.</para>
    </field_description>
  </field>
  <field id="fieldset_0-3_0" has_partial_fieldset="False" is_linked_to_partial_fieldset="False" is_access_restriction_possible="False" is_variable_length="False" is_constant_value="False" is_partial_field="False" is_conditional_field_name="False">
    <field_name>LEN</field_name>
    <field_msb>3</field_msb>
    <field_lsb>0</field_lsb>
    <rel_range>3:0</rel_range>
    <field_description order="before"><para>Requests an Effective Non-streaming SVE vector length at EL2 of (LEN+1)*128 bits.
This field also defines the Effective Non-streaming SVE vector length at EL0 when the Effective value of <register_link state="AArch64" id="AArch64-hcr_el2.xml">HCR_EL2</register_link>.{E2H, TGE} is {1, 1}.</para>
<para>The Non-streaming SVE vector length can be any power of two from 128 bits to 2048 bits inclusive. An implementation can support a subset of the architecturally permitted lengths. An implementation is required to support all lengths that are powers of two, from 128 bits up to its maximum implemented Non-streaming SVE vector length.</para>
<para>When FEAT_SME is not implemented, or the PE is not in Streaming SVE mode, the Effective SVE vector length (VL) is equal to the Effective Non-streaming SVE vector length.</para>
<para>When FEAT_SME is implemented and the PE is in Streaming SVE mode, VL is equal to the Effective Streaming SVE vector length. See <register_link state="AArch64" id="AArch64-smcr_el2.xml">SMCR_EL2</register_link>.</para>
<para>For all purposes other than returning the result of a direct read of ZCR_EL2, the PE selects the Effective Non-streaming SVE vector length by performing checks in the following order:</para>
<list type="ordered">
<listitem><content>
<para>If EL3 is implemented and the requested length is greater than the Effective length at EL3, then the Effective length at EL3 is used.</para>
</content>
</listitem><listitem><content>
<para>Otherwise, the Effective length is the highest supported Non-streaming SVE vector length that is less than or equal to the requested length.</para>
</content>
</listitem></list>
<para>An indirect read of ZCR_EL2.LEN appears to occur in program order relative to a direct write of the same register, without the need for explicit synchronization.</para></field_description>
    <field_resets>
      <field_reset reset_type="Warm">
        <field_reset_standard_text>AU</field_reset_standard_text>
      </field_reset>
    </field_resets>
  </field>
  <text_after_fields/>
</fields>




<reg_fieldset length="64">
  <fieldat id="fieldset_0-63_9" msb="63" lsb="9"/>
  <fieldat id="fieldset_0-8_4" msb="8" lsb="4"/>
  <fieldat id="fieldset_0-3_0" msb="3" lsb="0"/>
</reg_fieldset>


      </reg_fieldsets>

      <access_mechanisms>
          


  
    
      <access_permission_text>
        <para>When the Effective value of <register_link state="AArch64" id="AArch64-hcr_el2.xml">HCR_EL2</register_link>.E2H is 1, without explicit synchronization, accesses from EL2 using the accessor name <value>ZCR_EL2</value> or <value>ZCR_EL1</value> are not guaranteed to be ordered with respect to accesses using the other accessor name.</para>
      </access_permission_text>





    
        
        <access_mechanism accessor="MRS ZCR_EL2" type="SystemAccessor">
            <encoding>
            <access_instruction>MRS &lt;Xt&gt;, ZCR_EL2</access_instruction>
                
                <enc n="op0" v="0b11"/>
                
                <enc n="op1" v="0b100"/>
                
                <enc n="CRn" v="0b0001"/>
                
                <enc n="CRm" v="0b0010"/>
                
                <enc n="op2" v="0b000"/>
            </encoding>
            <access_permission>
                <ps name="MRS" sections="1" secttype="access_permission">
                <pstext>
if !IsFeatureImplemented(FEAT_SVE) then
    Undefined();
elsif PSTATE.EL == EL0 then
    Undefined();
elsif PSTATE.EL == EL1 then
    if EffectiveHCR_EL2_NVx() IN {'xx1'} then
        AArch64_SystemAccessTrap(EL2, 0x18);
    else
        Undefined();
    end;
elsif PSTATE.EL == EL2 then
    if HaveEL(EL3) &amp;&amp; EL3SDDUndefPriority() &amp;&amp; CPTR_EL3().EZ == '0' then
        Undefined();
    elsif !ELIsInHost(EL2) &amp;&amp; CPTR_EL2().TZ == '1' then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif ELIsInHost(EL2) &amp;&amp; CPTR_EL2().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif HaveEL(EL3) &amp;&amp; CPTR_EL3().EZ == '0' then
        if EL3SDDUndef() then
            Undefined();
        else
            AArch64_SystemAccessTrap(EL3, 0x19);
        end;
    else
        X{64}(t) = ZCR_EL2();
    end;
elsif PSTATE.EL == EL3 then
    if CPTR_EL3().EZ == '0' then
        AArch64_SystemAccessTrap(EL3, 0x19);
    else
        X{64}(t) = ZCR_EL2();
    end;
end;
                </pstext>
                </ps>
            </access_permission>
        </access_mechanism>
    
        
        <access_mechanism accessor="MSRregister ZCR_EL2" type="SystemAccessor">
            <encoding>
            <access_instruction>MSR ZCR_EL2, &lt;Xt&gt;</access_instruction>
                
                <enc n="op0" v="0b11"/>
                
                <enc n="op1" v="0b100"/>
                
                <enc n="CRn" v="0b0001"/>
                
                <enc n="CRm" v="0b0010"/>
                
                <enc n="op2" v="0b000"/>
            </encoding>
            <access_permission>
                <ps name="MSRregister" sections="1" secttype="access_permission">
                <pstext>
if !IsFeatureImplemented(FEAT_SVE) then
    Undefined();
elsif PSTATE.EL == EL0 then
    Undefined();
elsif PSTATE.EL == EL1 then
    if EffectiveHCR_EL2_NVx() IN {'xx1'} then
        AArch64_SystemAccessTrap(EL2, 0x18);
    else
        Undefined();
    end;
elsif PSTATE.EL == EL2 then
    if HaveEL(EL3) &amp;&amp; EL3SDDUndefPriority() &amp;&amp; CPTR_EL3().EZ == '0' then
        Undefined();
    elsif !ELIsInHost(EL2) &amp;&amp; CPTR_EL2().TZ == '1' then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif ELIsInHost(EL2) &amp;&amp; CPTR_EL2().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif HaveEL(EL3) &amp;&amp; CPTR_EL3().EZ == '0' then
        if EL3SDDUndef() then
            Undefined();
        else
            AArch64_SystemAccessTrap(EL3, 0x19);
        end;
    else
        ZCR_EL2() = X{64}(t);
    end;
elsif PSTATE.EL == EL3 then
    if CPTR_EL3().EZ == '0' then
        AArch64_SystemAccessTrap(EL3, 0x19);
    else
        ZCR_EL2() = X{64}(t);
    end;
end;
                </pstext>
                </ps>
            </access_permission>
        </access_mechanism>
    
        
        <access_mechanism accessor="MRS ZCR_EL1" type="SystemAccessor">
            <encoding>
            <access_instruction>MRS &lt;Xt&gt;, ZCR_EL1</access_instruction>
                
                <enc n="op0" v="0b11"/>
                
                <enc n="op1" v="0b000"/>
                
                <enc n="CRn" v="0b0001"/>
                
                <enc n="CRm" v="0b0010"/>
                
                <enc n="op2" v="0b000"/>
            </encoding>
            <access_permission>
                <ps name="MRS" sections="1" secttype="access_permission">
                <pstext>
if !IsFeatureImplemented(FEAT_SVE) then
    Undefined();
elsif PSTATE.EL == EL0 then
    Undefined();
elsif PSTATE.EL == EL1 then
    if HaveEL(EL3) &amp;&amp; EL3SDDUndefPriority() &amp;&amp; CPTR_EL3().EZ == '0' then
        Undefined();
    elsif CPACR_EL1().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL1, 0x19);
    elsif EL2Enabled() &amp;&amp; !ELIsInHost(EL2) &amp;&amp; CPTR_EL2().TZ == '1' then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif ELIsInHost(EL2) &amp;&amp; CPTR_EL2().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif HaveEL(EL3) &amp;&amp; CPTR_EL3().EZ == '0' then
        if EL3SDDUndef() then
            Undefined();
        else
            AArch64_SystemAccessTrap(EL3, 0x19);
        end;
    elsif EffectiveHCR_EL2_NVx() IN {'111'} then
        X{64}(t) = NVMem(0x1E0);
    else
        X{64}(t) = ZCR_EL1();
    end;
elsif PSTATE.EL == EL2 then
    if HaveEL(EL3) &amp;&amp; EL3SDDUndefPriority() &amp;&amp; CPTR_EL3().EZ == '0' then
        Undefined();
    elsif !ELIsInHost(EL2) &amp;&amp; CPTR_EL2().TZ == '1' then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif ELIsInHost(EL2) &amp;&amp; CPTR_EL2().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif HaveEL(EL3) &amp;&amp; CPTR_EL3().EZ == '0' then
        if EL3SDDUndef() then
            Undefined();
        else
            AArch64_SystemAccessTrap(EL3, 0x19);
        end;
    elsif ELIsInHost(EL2) then
        X{64}(t) = ZCR_EL2();
    else
        X{64}(t) = ZCR_EL1();
    end;
elsif PSTATE.EL == EL3 then
    if CPTR_EL3().EZ == '0' then
        AArch64_SystemAccessTrap(EL3, 0x19);
    else
        X{64}(t) = ZCR_EL1();
    end;
end;
                </pstext>
                </ps>
            </access_permission>
        </access_mechanism>
    
        
        <access_mechanism accessor="MSRregister ZCR_EL1" type="SystemAccessor">
            <encoding>
            <access_instruction>MSR ZCR_EL1, &lt;Xt&gt;</access_instruction>
                
                <enc n="op0" v="0b11"/>
                
                <enc n="op1" v="0b000"/>
                
                <enc n="CRn" v="0b0001"/>
                
                <enc n="CRm" v="0b0010"/>
                
                <enc n="op2" v="0b000"/>
            </encoding>
            <access_permission>
                <ps name="MSRregister" sections="1" secttype="access_permission">
                <pstext>
if !IsFeatureImplemented(FEAT_SVE) then
    Undefined();
elsif PSTATE.EL == EL0 then
    Undefined();
elsif PSTATE.EL == EL1 then
    if HaveEL(EL3) &amp;&amp; EL3SDDUndefPriority() &amp;&amp; CPTR_EL3().EZ == '0' then
        Undefined();
    elsif CPACR_EL1().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL1, 0x19);
    elsif EL2Enabled() &amp;&amp; !ELIsInHost(EL2) &amp;&amp; CPTR_EL2().TZ == '1' then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif ELIsInHost(EL2) &amp;&amp; CPTR_EL2().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif HaveEL(EL3) &amp;&amp; CPTR_EL3().EZ == '0' then
        if EL3SDDUndef() then
            Undefined();
        else
            AArch64_SystemAccessTrap(EL3, 0x19);
        end;
    elsif EffectiveHCR_EL2_NVx() IN {'111'} then
        NVMem(0x1E0) = X{64}(t);
    else
        ZCR_EL1() = X{64}(t);
    end;
elsif PSTATE.EL == EL2 then
    if HaveEL(EL3) &amp;&amp; EL3SDDUndefPriority() &amp;&amp; CPTR_EL3().EZ == '0' then
        Undefined();
    elsif !ELIsInHost(EL2) &amp;&amp; CPTR_EL2().TZ == '1' then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif ELIsInHost(EL2) &amp;&amp; CPTR_EL2().ZEN IN {'x0'} then
        AArch64_SystemAccessTrap(EL2, 0x19);
    elsif HaveEL(EL3) &amp;&amp; CPTR_EL3().EZ == '0' then
        if EL3SDDUndef() then
            Undefined();
        else
            AArch64_SystemAccessTrap(EL3, 0x19);
        end;
    elsif ELIsInHost(EL2) then
        ZCR_EL2() = X{64}(t);
    else
        ZCR_EL1() = X{64}(t);
    end;
elsif PSTATE.EL == EL3 then
    if CPTR_EL3().EZ == '0' then
        AArch64_SystemAccessTrap(EL3, 0x19);
    else
        ZCR_EL1() = X{64}(t);
    end;
end;
                </pstext>
                </ps>
            </access_permission>
        </access_mechanism>

      </access_mechanisms>

      <arch_variants>
      </arch_variants>
  </register>
</registers>
<timestamp>2026-03-26 20:27:25</timestamp>
<commit_id>2026-03_rel</commit_id>
</register_page>