ARM / OFFLINE REFERENCE

On this page
← Home

ICH_AP1R<n>, n = 0 - 3

Interrupt Controller Hyp Active Priorities Group 1 Registers

Provides information about Group 1 active priorities for EL2.

Configuration

AArch32 System register ICH_AP1R<n> bits [31:0] are architecturally mapped to AArch64 System register ICH_AP1R<n>_EL2[31:0].

This register is present only when FEAT_AA32EL2 is implemented, GICv3 is implemented, and (EL2 is implemented or EL3 is implemented). Otherwise, direct accesses to ICH_AP1R<n> are UNDEFINED.

If EL2 is not implemented, this register is RES0 from EL3.

Attributes

ICH_AP1R<n> is a 32-bit register.

Field descriptions

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
P31 P30 P29 P28 P27 P26 P25 P24 P23 P22 P21 P20 P19 P18 P17 P16 P15 P14 P13 P12 P11 P10 P9 P8 P7 P6 P5 P4 P3 P2 P1 P0

P<x>, bit [x], for x = 31 to 0:

Group 1 interrupt active priorities. Possible values of each bit are:

P<x> Meaning
0b0

There is no Group 1 interrupt active at the priority corresponding to that bit.

0b1

There is a Group 1 interrupt active at the priority corresponding to that bit.

The correspondence between priority levels and bits depends on the number of bits of priority that are implemented.

If 5 bits of preemption are implemented (bits [7:3] of priority), then there are 32 preemption levels, and the active state of these preemption levels are held in ICH_AP1R0 in the bits corresponding to Priority[7:3].

If 6 bits of preemption are implemented (bits [7:2] of priority), then there are 64 preemption levels, and:

If 7 bits of preemption are implemented (bits [7:1] of priority), then there are 128 preemption levels, and:

Having the bit corresponding to a priority set to 1 in both ICH_AP0R<n> and ICH_AP1R<n> might result in UNPREDICTABLE behavior of the interrupt prioritization system for virtual interrupts.

The reset behavior of this field is:

Access Instructions

ICH_AP1R1 is implemented only in implementations that support 6 or more bits of preemption. ICH_AP1R2 and ICH_AP1R3 are implemented only in implementations that support 7 bits of preemption. Unimplemented registers are UNDEFINED.

The number of bits of preemption is indicated by ICH_VTR.PREbits

Writing to the active priority registers in any order other than the following order will result in UNPREDICTABLE behavior:

Accesses to this register use the following encodings in the System register encoding space:

MRC{<c>}{<q>} <coproc>, {#}<opc1>, <Rt>, <CRn>, <CRm>{, {#}<opc2>} ; Where m = 0-3

(coproc = 0b1111, opc1 = 0b100, CRn = 0b1100, CRm = 0b1001, opc2 = 0b0:m[1:0])


let m:integer = UInt(opc2[1:0]);

if !(IsFeatureImplemented(FEAT_AA32EL2) && IsFeatureImplemented(FEAT_GICv3) && (HaveEL(EL2) || HaveEL(EL3))) then
    Undefined();
elsif m == 1 && NUM_GIC_PREEMPTION_BITS < 6 then
    Undefined();
elsif (m == 2 || m == 3) && NUM_GIC_PREEMPTION_BITS < 7 then
    Undefined();
elsif PSTATE.EL == EL0 then
    Undefined();
elsif PSTATE.EL == EL1 then
    if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T12 == '1' then
        AArch64_AArch32SystemAccessTrap(EL2, 0x03);
    elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T12 == '1' then
        AArch32_TakeHypTrapException(0x03);
    else
        Undefined();
    end;
elsif PSTATE.EL == EL2 then
    if ICC_HSRE().SRE == '0' then
        Undefined();
    else
        R(t) = ICH_AP1R(m);
    end;
elsif PSTATE.EL == EL3 then
    if SCR().NS == '0' then
        Undefined();
    elsif ICC_MSRE().SRE == '0' then
        Undefined();
    else
        R(t) = ICH_AP1R(m);
    end;
end;
                

MCR{<c>}{<q>} <coproc>, {#}<opc1>, <Rt>, <CRn>, <CRm>{, {#}<opc2>} ; Where m = 0-3

(coproc = 0b1111, opc1 = 0b100, CRn = 0b1100, CRm = 0b1001, opc2 = 0b0:m[1:0])


let m:integer = UInt(opc2[1:0]);

if !(IsFeatureImplemented(FEAT_AA32EL2) && IsFeatureImplemented(FEAT_GICv3) && (HaveEL(EL2) || HaveEL(EL3))) then
    Undefined();
elsif m == 1 && NUM_GIC_PREEMPTION_BITS < 6 then
    Undefined();
elsif (m == 2 || m == 3) && NUM_GIC_PREEMPTION_BITS < 7 then
    Undefined();
elsif PSTATE.EL == EL0 then
    Undefined();
elsif PSTATE.EL == EL1 then
    if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T12 == '1' then
        AArch64_AArch32SystemAccessTrap(EL2, 0x03);
    elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T12 == '1' then
        AArch32_TakeHypTrapException(0x03);
    else
        Undefined();
    end;
elsif PSTATE.EL == EL2 then
    if ICC_HSRE().SRE == '0' then
        Undefined();
    else
        ICH_AP1R(m) = R(t);
    end;
elsif PSTATE.EL == EL3 then
    if SCR().NS == '0' then
        Undefined();
    elsif ICC_MSRE().SRE == '0' then
        Undefined();
    else
        ICH_AP1R(m) = R(t);
    end;
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.