ZCR_EL2, SVE Control Register for EL2

The ZCR_EL2 characteristics are:

Purpose

The SVE Control Register for EL2 is used to control aspects of SVE visible at exception levels EL2 and Non-secure EL1 and EL0.

This register is part of the Other system control registers functional group.

Configuration

If SVE is not implemented, this register is UNDEFINED.

RW fields in this register reset to architecturally UNKNOWN values.

Attributes

ZCR_EL2 is a 64-bit register.

Field descriptions

The ZCR_EL2 bit assignments are:

6362616059585756555453525150494847464544434241403938373635343332
00000000000000000000000000000000
0000000000000000000000000000LEN
313029282726252423222120191817161514131211109876543210

Bits [63:9]

Reserved, RES0.

Bits [8:4]

Reserved, RAZ/WI.

LEN, bits [3:0]

Constrains the scalable vector register length for EL2 and Non-secure EL1 and Non-secure EL0 to (LEN+1)x128 bits. For all purposes other than returning the result of a direct read of ZCR_EL2 then this field behaves as if it is set to the minimum of the stored value and the constrained length inherited from more privileged Exception levels in the current Security state, rounded down to the nearest implemented vector length.

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.

Accessing the ZCR_EL2

This register can be read using MRS with the following syntax:

MRS <Xt>, <systemreg>

This register can be written using MSR (register) with the following syntax:

MSR <systemreg>, <Xt>

This syntax uses the following encoding in the System instruction encoding space:

<systemreg> op0op1CRnCRmop2
ZCR_EL21110000010010000
ZCR_EL11100000010010000

Accessibility

The register is accessible as follows:

<systemreg> Control Accessibility
E2HTGENSEL0EL1EL2EL3
ZCR_EL2xx0 - - n/a RW
ZCR_EL2001 - - RWRW
ZCR_EL2011 - n/a RWRW
ZCR_EL2101 - - RWRW
ZCR_EL2111 - n/a RWRW
ZCR_EL1xx0 - ZCR_EL1 n/a ZCR_EL1
ZCR_EL1001 - ZCR_EL1 ZCR_EL1 ZCR_EL1
ZCR_EL1011 - n/a ZCR_EL1 ZCR_EL1
ZCR_EL1101 - ZCR_EL1 RW ZCR_EL1
ZCR_EL1111 - n/a RW ZCR_EL1

When HCR_EL2.E2H is 1, without explicit synchronization, access from EL2 using the mnemonic ZCR_EL2 or ZCR_EL1 are not guaranteed to be ordered with respect to accesses using the other mnemonic.

Traps and enables

For a description of the prioritization of any generated exceptions, see section D1.13.2 (Synchronous exception prioritization) in the ARM® Architecture Reference Manual, ARMv8, for ARMv8-A architecture profile. Subject to the prioritization rules, the following traps and enables are applicable when accessing this register.

When EL2 is implemented and is using AArch64 and SCR_EL3.NS==1 && HCR_EL2.E2H==0 :

When EL2 is implemented and is using AArch64 and SCR_EL3.NS==1 && HCR_EL2.E2H==1 && HCR_EL2.TGE==0 :

When EL2 is implemented and is using AArch64 and SCR_EL3.NS==1 && HCR_EL2.E2H==1 && HCR_EL2.TGE==1 :

When EL3 is implemented and is using AArch64 :




14/12/2017 16:25

Copyright © 2010-2017 ARM Limited or its affiliates. All rights reserved. This document is Non-Confidential.