SPMDEVAFF_EL1
System Performance Monitors Device Affinity Register
For additional information, see the CoreSight Architecture Specification.
For a System PMU that has affinity with a single PE or a group of PEs, SPMDEVAFF_EL1 is a copy of MPIDR_EL1 or part of MPIDR_EL1:
- If the System PMU has affinity with a single PE, then the affinity level is 0 and SPMDEVAFF_EL1 reads the same value as MPIDR_EL1, and SPMDEVAFF_EL1.F0V reads-as-one to indicate affinity level 0.
- If the System PMU has affinity with a group of PEs, then the affinity level is 1, 2, or 3, parts of SPMDEVAFF_EL1 reads the same value as parts of MPIDR_EL1, and the rest of SPMDEVAFF_EL1 indicates the level.
For example, if the group of PEs is a subset of the PEs at affinity level 1, then all of the following are true:
- All the PEs in the group have the same values in MPIDR_EL1.{Aff3,Aff2}, and these values are equal to SPMDEVAFF_EL1.{Aff3,Aff2}.
- SPMDEVAFF_EL1.Aff1 is nonzero and not 0x80, and SPMDEVAFF_EL1.{Aff0,F0V} read-as-zero, to indicate at least affinity level 1. The subset of PEs at level 1 that the System PMU has affinity with is indicated by the least-significant set bit in SPMDEVAFF_EL1.Aff1. In this example, if SPMDEVAFF_EL1.Aff1[2:0] is 0b100, then the System PMU has affinity with the up-to 8 PEs that have MPIDR_EL1.Aff1[7:3] == SPMDEVAFF_EL1.Aff1[7:3].
Depending on the IMPLEMENTATION DEFINED nature of the system, it might be possible that SPMDEVAFF_EL1 is read before system firmware has configured the System PMU and/or the PE or group of PEs that the System PMU has affinity with. When this is the case, SPMDEVAFF_EL1 reads-as-zero.
Configuration
This register is present only when FEAT_SPMU is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to SPMDEVAFF_EL1 are UNDEFINED.
Attributes
SPMDEVAFF_EL1 is a 64-bit register.
Field descriptions
| 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| RES0 | Aff3 | ||||||||||||||||||||||||||||||
| F0V | U | RES0 | MT | Aff2 | Aff1 | Aff0 | |||||||||||||||||||||||||
Bits [63:40]:
Reserved, RES0.
Aff3, bits [39:32]:
PE affinity level 3. The MPIDR_EL1.Aff3 field, viewed from the highest Exception level of the associated PE or PEs.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
F0V, bit [31]:
Indicates that the SPMDEVAFF_EL1.Aff0 field is valid.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| F0V | Meaning |
|---|---|
| 0b0 |
SPMDEVAFF_EL1.Aff0 is not valid, and the PE affinity is above level 0 or a subset of level 0. |
| 0b1 |
SPMDEVAFF_EL1.Aff0 is valid, and the PE affinity is at level 0. |
Access to this field is RO.
U, bit [30] when SPMDEVAFF_EL1.F0V == '1':
Uniprocessor. The MPIDR_EL1.U field, viewed from the highest Exception level of the associated PE.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
Otherwise:
Reserved, UNKNOWN.
Bits [29:25]:
Reserved, RES0.
MT, bit [24] when SPMDEVAFF_EL1.F0V == '1':
Multithreaded. The MPIDR_EL1.MT field, viewed from the highest Exception level of the associated PE.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
Otherwise:
Reserved, UNKNOWN.
Aff2, bits [23:16] when affine with a PE or PEs at affinity level 2 or below:
PE affinity level 2. The MPIDR_EL1.Aff2 field, viewed from the highest Exception level of the associated PE or PEs.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
when affine with a subset of PEs at affinity level 2:
PE affinity level 2. Defines part of the MPIDR_EL1.Aff2 field, viewed from the highest Exception level of the associated PEs.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| Aff2 | Meaning |
|---|---|
| 0bxxxxxxx1 |
SPMDEVAFF_EL1.Aff2[7:1] is the value of MPIDR_EL1.Aff2[7:1], viewed from the highest Exception level of the associated PEs. |
| 0bxxxxxx10 |
SPMDEVAFF_EL1.Aff2[7:2] is the value of MPIDR_EL1.Aff2[7:2], viewed from the highest Exception level of the associated PEs. |
| 0bxxxxx100 |
SPMDEVAFF_EL1.Aff2[7:3] is the value of MPIDR_EL1.Aff2[7:3], viewed from the highest Exception level of the associated PEs. |
| 0bxxxx1000 |
SPMDEVAFF_EL1.Aff2[7:4] is the value of MPIDR_EL1.Aff2[7:4], viewed from the highest Exception level of the associated PEs. |
| 0bxxx10000 |
SPMDEVAFF_EL1.Aff2[7:5] is the value of MPIDR_EL1.Aff2[7:5], viewed from the highest Exception level of the associated PEs. |
| 0bxx100000 |
SPMDEVAFF_EL1.Aff2[7:6] is the value of MPIDR_EL1.Aff2[7:6], viewed from the highest Exception level of the associated PEs. |
| 0bx1000000 |
SPMDEVAFF_EL1.Aff2[7] is the value of MPIDR_EL1.Aff2[7], viewed from the highest Exception level of the associated PEs. |
Access to this field is RO.
Otherwise:
PE affinity level NOT DEFINED. Indicates whether the PE affinity is at level 3.
| Aff2 | Meaning |
|---|---|
| 0x80 |
PE affinity is at level 3. |
All other values are reserved.
Access to this field is RO.
Aff1, bits [15:8] when affine with a PE or PEs at affinity level 1 or below:
PE affinity level 1. The MPIDR_EL1.Aff1 field, viewed from the highest Exception level of the associated PE or PEs.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
when affine with a subset of PEs at affinity level 1:
PE affinity level 1. Defines part of the MPIDR_EL1.Aff1 field, viewed from the highest Exception level of the associated PEs.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| Aff1 | Meaning |
|---|---|
| 0bxxxxxxx1 |
SPMDEVAFF_EL1.Aff1[7:1] is the value of MPIDR_EL1.Aff1[7:1], viewed from the highest Exception level of the associated PEs. |
| 0bxxxxxx10 |
SPMDEVAFF_EL1.Aff1[7:2] is the value of MPIDR_EL1.Aff1[7:2], viewed from the highest Exception level of the associated PEs. |
| 0bxxxxx100 |
SPMDEVAFF_EL1.Aff1[7:3] is the value of MPIDR_EL1.Aff1[7:3], viewed from the highest Exception level of the associated PEs. |
| 0bxxxx1000 |
SPMDEVAFF_EL1.Aff1[7:4] is the value of MPIDR_EL1.Aff1[7:4], viewed from the highest Exception level of the associated PEs. |
| 0bxxx10000 |
SPMDEVAFF_EL1.Aff1[7:5] is the value of MPIDR_EL1.Aff1[7:5], viewed from the highest Exception level of the associated PEs. |
| 0bxx100000 |
SPMDEVAFF_EL1.Aff1[7:6] is the value of MPIDR_EL1.Aff1[7:6], viewed from the highest Exception level of the associated PEs. |
| 0bx1000000 |
SPMDEVAFF_EL1.Aff1[7] is the value of MPIDR_EL1.Aff1[7], viewed from the highest Exception level of the associated PEs. |
Access to this field is RO.
Otherwise:
PE affinity level 1. Indicates whether the PE affinity is at level 2.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| Aff1 | Meaning |
|---|---|
| 0x00 |
PE affinity is above level 2 or a subset of level 2. |
| 0x80 |
PE affinity is at level 2. |
Access to this field is RO.
Aff0, bits [7:0] when affine with a PE at affinity level 0:
PE affinity level 0. The MPIDR_EL1.Aff0 field, viewed from the highest Exception level of the associated PE.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
when affine with a subset of PEs at affinity level 0:
PE affinity level 0. Defines part of the MPIDR_EL1.Aff0 field, viewed from the highest Exception level of the associated PEs.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| Aff0 | Meaning |
|---|---|
| 0bxxxxxxx1 |
SPMDEVAFF_EL1.Aff0[7:1] is the value of MPIDR_EL1.Aff0[7:1], viewed from the highest Exception level of the associated PEs. |
| 0bxxxxxx10 |
SPMDEVAFF_EL1.Aff0[7:2] is the value of MPIDR_EL1.Aff0[7:2], viewed from the highest Exception level of the associated PEs. |
| 0bxxxxx100 |
SPMDEVAFF_EL1.Aff0[7:3] is the value of MPIDR_EL1.Aff0[7:3], viewed from the highest Exception level of the associated PEs. |
| 0bxxxx1000 |
SPMDEVAFF_EL1.Aff0[7:4] is the value of MPIDR_EL1.Aff0[7:4], viewed from the highest Exception level of the associated PEs. |
| 0bxxx10000 |
SPMDEVAFF_EL1.Aff0[7:5] is the value of MPIDR_EL1.Aff0[7:5], viewed from the highest Exception level of the associated PEs. |
| 0bxx100000 |
SPMDEVAFF_EL1.Aff0[7:6] is the value of MPIDR_EL1.Aff0[7:6], viewed from the highest Exception level of the associated PEs. |
| 0bx1000000 |
SPMDEVAFF_EL1.Aff0[7] is the value of MPIDR_EL1.Aff0[7], viewed from the highest Exception level of the associated PEs. |
Access to this field is RO.
Otherwise:
PE affinity level 0. Indicates whether the PE affinity is at level 1.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| Aff0 | Meaning |
|---|---|
| 0x00 |
PE affinity is above level 1 or a subset of level 1. |
| 0x80 |
PE affinity is at level 1. |
Access to this field is RO.
Access Instructions
Reads of SPMDEVAFF_EL1 are not affected by the value of VMPIDR_EL2 at any Exception level.
If System PMU <s> has affinity only with this PE, then it is IMPLEMENTATION DEFINED whether SPMDEVAFF_EL1 reads-as-zero or reads the same value as MPIDR_EL1.
To access SPMDEVAFF_EL1 for System PMU <s>, set SPMSELR_EL0.SYSPMUSEL to s.
SPMDEVAFF_EL1 reads-as-zero if any of the following are true:
- System PMU <s> is not implemented.
- System PMU <s> has no affinity with the PE or cluster of PEs.
Accesses to this register use the following encodings in the System register encoding space:
MRS <Xt>, SPMDEVAFF_EL1
(op0 = 0b10, op1 = 0b000, CRn = 0b1001, CRm = 0b1101, op2 = 0b110)
if !(IsFeatureImplemented(FEAT_SPMU) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().EnPM2 == '0' then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && SPMACCESSR_EL3()[UInt(SPMSELR_EL0().SYSPMUSEL) * 2+:2] == '00' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && IsFeatureImplemented(FEAT_FGT2) && ((HaveEL(EL3) && SCR_EL3().FGTEn2 == '0') || HDFGRTR2_EL2().nSPMDEVAFF_EL1 == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && MDCR_EL2().EnSPM == '0' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && SPMACCESSR_EL2()[UInt(SPMSELR_EL0().SYSPMUSEL) * 2+:2] == '00' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && MDCR_EL3().EnPM2 == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif HaveEL(EL3) && SPMACCESSR_EL3()[UInt(SPMSELR_EL0().SYSPMUSEL) * 2+:2] == '00' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
X{64}(t) = SPMDEVAFF_EL1(UInt(SPMSELR_EL0().SYSPMUSEL));
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && MDCR_EL3().EnPM2 == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif HaveEL(EL3) && SPMACCESSR_EL3()[UInt(SPMSELR_EL0().SYSPMUSEL) * 2+:2] == '00' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
X{64}(t) = SPMDEVAFF_EL1(UInt(SPMSELR_EL0().SYSPMUSEL));
end;
elsif PSTATE.EL == EL3 then
X{64}(t) = SPMDEVAFF_EL1(UInt(SPMSELR_EL0().SYSPMUSEL));
end;
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.