[Writeup] External debug and trace register pages: part 12 of 22 ================================================================ Section: Silicon & Architectures Started: 2026-11-28 17:38 UTC by admin Replies: 0, last post 2026-11-28 17:38 UTC Page: 1 of 1 Web: https://romdump.net/t/71 ------------------------------------------------------------------------------ #91 admin, 2026-11-28 17:38 UTC [OP] (edited) Source: https://romdump.net/raw/91
Archived Arm source pages for the External debug and trace register pages.
Part 12 of 22. This part covers GICD_ISPENDR
Interrupt Set-Pending Registers (Extended SPI range)
Adds the pending state to the corresponding SPI in the extended SPI range.
This register is present only when GICv3.1 is implemented. Otherwise, direct accesses to GICD_ISPENDR<n>E are RES0.
When GICD_TYPER.ESPI==0, these registers are RES0.
When GICD_TYPER.ESPI==1, the number of implemented GICD_ISPENDR<n>E registers is (GICD_TYPER.ESPI_range+1). Registers are numbered from 0.
GICD_ISPENDR<n>E is a 32-bit register.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Set_pending_bit31 | Set_pending_bit30 | Set_pending_bit29 | Set_pending_bit28 | Set_pending_bit27 | Set_pending_bit26 | Set_pending_bit25 | Set_pending_bit24 | Set_pending_bit23 | Set_pending_bit22 | Set_pending_bit21 | Set_pending_bit20 | Set_pending_bit19 | Set_pending_bit18 | Set_pending_bit17 | Set_pending_bit16 | Set_pending_bit15 | Set_pending_bit14 | Set_pending_bit13 | Set_pending_bit12 | Set_pending_bit11 | Set_pending_bit10 | Set_pending_bit9 | Set_pending_bit8 | Set_pending_bit7 | Set_pending_bit6 | Set_pending_bit5 | Set_pending_bit4 | Set_pending_bit3 | Set_pending_bit2 | Set_pending_bit1 | Set_pending_bit0 |
For the extended SPIs, adds the pending state to interrupt number x. Reads and writes have the following behavior:
| Set_pending_bit<x> | Meaning |
|---|---|
| 0b0 | If read, indicates that the corresponding interrupt is not pending. If written, has no effect. |
| 0b1 | If read, indicates that the corresponding interrupt is pending, or active and pending. If written, changes the state of the corresponding interrupt from inactive to pending, or from active to active and pending. This has no effect in the following cases: If the interrupt is already pending because of a write to GICD_ISPENDR<n>E. If the interrupt is already pending because the corresponding interrupt signal is asserted. In this case, the interrupt remains pending if the interrupt signal is deasserted. |
The reset behavior of this field is:
For INTID m, when DIV and MOD are the integer division and modulo operations:
When affinity routing is not enabled for the Security state of an interrupt in GICD_ISPENDR<n>E, the corresponding bit is RES0.
When GICD_CTLR.DS==0, bits corresponding to Secure SPIs are RAZ/WI to Non-secure accesses.
Bits corresponding to unimplemented interrupts are RAZ/WI.
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x1600 + (4 * n) | GICD_ISPENDR<n>E |
Accesses to this register are RW.
Interrupt Processor Targets Registers
When affinity routing is not enabled, holds the list of target PEs for the interrupt. That is, it holds the list of CPU interfaces to which the Distributor forwards the interrupt if it is asserted and has sufficient priority.
These registers are available in all configurations of the GIC. When GICD_CTLR.DS==0, these registers are Common.
The number of implemented GICD_ITARGETSR<n> registers is 8*(GICD_TYPER.ITLinesNumber+1). Registers are numbered from 0.
GICD_ITARGETSR0 to GICD_ITARGETSR7 are Banked for each connected PEwith GICR_TYPER.Processor_Number < 8.
Accessing GICD_ITARGETSR0 to GICD_ITARGETSR7 from a PE with GICR_TYPER.Processor_Number > 7 is CONSTRAINED UNPREDICTABLE:
GICD_ITARGETSR<n> is a 32-bit register.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CPU_targets_offset_3B | CPU_targets_offset_2B | CPU_targets_offset_1B | CPU_targets_offset_0B |
PEs in the system number from 0, and each bit in a PE targets field refers to the corresponding PE. For example, a value of 0x3 means that the Pending interrupt is sent to PEs 0 and 1. For GICD_ITARGETSR0-GICD_ITARGETSR7, a read of any targets field returns the number of the PE performing the read.
PE targets for an interrupt, at byte offset 3.
The reset behavior of this field is:
PE targets for an interrupt, at byte offset 2.
The reset behavior of this field is:
PE targets for an interrupt, at byte offset 1.
The reset behavior of this field is:
PE targets for an interrupt, at byte offset 0.
The reset behavior of this field is:
The bits that are set to 1 in the PE targets field determine which PEs are targeted:
| Value of PE targets field | Interrupt targets |
|---|---|
| 0bxxxxxxx1 | CPU interface 0 |
| 0bxxxxxx1x | CPU interface 1 |
| 0bxxxxx1xx | CPU interface 2 |
| 0bxxxx1xxx | CPU interface 3 |
| 0bxxx1xxxx | CPU interface 4 |
| 0bxx1xxxxx | CPU interface 5 |
| 0bx1xxxxxx | CPU interface 6 |
| 0b1xxxxxxx | CPU interface 7 |
For interrupt ID m, when DIV and MOD are the integer division and modulo operations:
The corresponding GICD_ITARGETSR<n> number, n, is given by n = m DIV 4.
The offset of the required GICD_ITARGETSR<n> register is (0x800 + (4*n)). The byte offset of the required Priority field in this register is m MOD 4, where:
Has no effect on any active interrupt. This means that removing a CPU interface from a targets list does not cancel an active state for interrupts on that CPU interface. There is no effect on interrupts that are active and pending until the active status is cleared, at which time it is treated as a pending interrupt. Has an effect on any pending interrupts. This means:
These registers are used when affinity routing is not enabled. When affinity routing is enabled for the Security state of an interrupt, the target PEs for an interrupt are defined by GICD_IROUTER<n> and the associated byte in GICD_ITARGETSR<n> is RES0. An implementation is permitted to make the byte RAZ/WI in this case.
Implementations must ensure that an interrupt that is pending at the time of the write uses either the old value or the new value and must ensure that the interrupt is neither lost nor handled more than one time. The effect of the change must be visible in finite time.
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0800 + (4 * n) | GICD_ITARGETSR<n> |
Accesses to this register are RW.
Non-secure Access Control Registers
Enables Secure software to permit Non-secure software on a particular PE to create and control Group 0 interrupts.
The concept of selective enabling of Non-secure access to Group 0 and Secure Group 1 interrupts applies to SGIs and SPIs.
GICD_NSACR0 is a Banked register used for SGIs. A copy is provided for every PE that has a CPU interface and that supports this feature.
GICD_NSACR<n> is a 32-bit register.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NS_access15 | NS_access14 | NS_access13 | NS_access12 | NS_access11 | NS_access10 | NS_access9 | NS_access8 | NS_access7 | NS_access6 | NS_access5 | NS_access4 | NS_access3 | NS_access2 | NS_access1 | NS_access0 |
Controls Non-secure access of the interrupt with ID 16n + x.
If the corresponding interrupt does not support configurable Non-secure access, the field is RAZ/WI.
Otherwise, the field is RW and determines the level of Non-secure control permitted if the interrupt is a Secure interrupt. If the interrupt is a Non-secure interrupt, this field is ignored.
The possible values of each 2-bit field are:
| NS_access<x> | Meaning |
|---|---|
| 0b00 | No Non-secure access is permitted to fields associated with the corresponding interrupt. |
| 0b01 | Non-secure read and write access is permitted to set-pending bits in GICD_ISPENDR<n> associated with the corresponding interrupt. A Non-secure write access to GICD_SETSPI_NSR is permitted to set the pending state of the corresponding interrupt. A Non-secure write access to GICD_SGIR is permitted to generate a Secure SGI for the corresponding interrupt. An implementation might also provide read access to clear-pending bits in GICD_ICPENDR<n> associated with the corresponding interrupt. |
| 0b10 | As 0b01, but adds Non-secure read and write access permission to fields associated with the corresponding interrupt in the GICD_ICPENDR<n> registers. A Non-secure write access to GICD_CLRSPI_NSR is permitted to clear the pending state of the corresponding interrupt. Also adds Non-secure read access permission to fields associated with the corresponding interrupt in the GICD_ISACTIVER<n> and GICD_ICACTIVER<n> registers. |
| 0b11 | For GICD_NSACR0 this encoding is reserved and treated as 10. For all other GICD_NSACR<n> registers this encoding is treated as 0b10, but adds Non-secure read and write access permission to GICD_ITARGETSR<n> and GICD_IROUTER<n> fields associated with the corresponding interrupt. |
The reset behavior of this field is:
For interrupt ID m, when DIV and MOD are the integer division and modulo operations:
For compatibility with GICv2, writes to GICD_NSACR0 for a particular PE must be coordinated within the Distributor and must update GICR_NSACR for the Redistributor associated with that PE.
These registers are always used when affinity routing is not enabled. When affinity routing is enabled for the Secure state, GICD_NSACR0 is RES0 and GICR_NSACR provides equivalent functionality for SGIs.
These registers do not support PPIs, therefore GICD_NSACR1 is RAZ/WI.
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0E00 + (4 * n) | GICD_NSACR<n> |
Accessible as follows:
Set Non-secure SPI Pending Register
Adds the pending state to a valid SPI if permitted by the Security state of the access and the GICD_NSACR<n> value for that SPI.
A write to this register changes the state of an inactive SPI to pending, and the state of an active SPI to active and pending.
If GICD_TYPER.MBIS == 0, this register is reserved.
When GICD_CTLR.DS == 1, this register provides functionality for all SPIs.
GICD_SETSPI_NSR is a 32-bit register.
| 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 | INTID |
Reserved, RES0.
The INTID of the SPI.
The function of this register depends on whether the targeted SPI is configured to be an edge-triggered or level-sensitive interrupt:
Writes to this register have no effect if:
A Secure access to this register can set the pending state of any valid SPI.
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0040 | GICD_SETSPI_NSR |
Accesses to this register are WO.
Set Secure SPI Pending Register
Adds the pending state to a valid SPI.
A write to this register changes the state of an inactive SPI to pending, and the state of an active SPI to active and pending.
If GICD_TYPER.MBIS == 0, this register is reserved.
When GICD_CTLR.DS == 1, this register is WI.
GICD_SETSPI_SR is a 32-bit register.
| 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 | INTID |
Reserved, RES0.
The INTID of the SPI.
The function of this register depends on whether the targeted SPI is configured to be an edge-triggered or level-sensitive interrupt:
Writes to this register have no effect if:
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0050 | GICD_SETSPI_SR |
Accessible as follows:
Software Generated Interrupt Register
Controls the generation of SGIs.
This register is available in all configurations of the GIC. If the GIC supports two Security states this register is Common.
GICD_SGIR is a 32-bit register.
| 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 | TargetListFilter | CPUTargetList | NSATT | RES0 | INTID |
Reserved, RES0.
Determines how the Distributor processes the requested SGI.
| TargetListFilter | Meaning |
|---|---|
| 0b00 | Forward the interrupt to the CPU interfaces specified by GICD_SGIR.CPUTargetList. |
| 0b01 | Forward the interrupt to all CPU interfaces except that of the PE that requested the interrupt. |
| 0b10 | Forward the interrupt only to the CPU interface of the PE that requested the interrupt. |
| 0b11 | Reserved. |
When GICD_SGIR.TargetListFilter is 0b00, this field defines the CPU interfaces to which the Distributor must forward the interrupt.
Each bit of the field refers to the corresponding CPU interface. For example, CPUTargetList[0] corresponds to interface 0. Setting a bit to 1 indicates that the interrupt must be forwarded to the corresponding interface.
If this field is 0b00000000 when GICD_SGIR.TargetListFilter is 0b00, the Distributor does not forward the interrupt to any CPU interface.
Specifies the required group of the SGI.
| NSATT | Meaning |
|---|---|
| 0b0 | Forward the SGI specified in the INTID field to a specified CPU interface only if the SGI is configured as Group 0 on that interface. |
| 0b1 | Forward the SGI specified in the INTID field to a specified CPU interface only if the SGI is configured as Group 1 on that interface. |
This field is writable only by a Secure access. Non-secure accesses can also generate Group 0 interrupts, if allowed to do so by GICD_NSACR0. Otherwise, Non-secure writes to GICD_SGIR generate an SGI only if the specified SGI is programmed as Group 1, regardless of the value of bit [15] of the write.
Reserved, RES0.
The INTID of the SGI to forward to the specified CPU interfaces.
This register is used only when affinity routing is not enabled. When affinity routing is enabled, this register is RES0.
It is IMPLEMENTATION DEFINED whether this register has any effect when the forwarding of interrupts by the Distributor is disabled by GICD_CTLR.
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0F00 | GICD_SGIR |
Accesses to this register are WO.
SGI Set-Pending Registers
Adds the pending state to an SGI.
A write to this register changes the state of an inactive SGI to pending, and the state of an active SGI to active and pending.
Four SGI set-pending registers are implemented. Each register contains eight set-pending bits for each of four SGIs, for a total of 16 possible SGIs.
In multiprocessor implementations, each PE has a copy of these registers.
GICD_SPENDSGIR<n> is a 32-bit register.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SGI_set_pending_bits3 | SGI_set_pending_bits2 | SGI_set_pending_bits1 | SGI_set_pending_bits0 |
Adds the pending state to SGI number 4n + x for the PE corresponding to the bit number written to.
Reads and writes have the following behavior:
| SGI_set_pending_bits<x> | Meaning |
|---|---|
| 0x00 | If read, indicates that the SGI from the corresponding PE is not pending and is not active and pending. If written, has no effect. |
| 0x01 | If read, indicates that the SGI from the corresponding PE is pending or is active and pending. If written, adds the pending state to the SGI for the corresponding PE. |
The reset behavior of this field is:
For SGI ID m, generated by processing element C writing to the corresponding GICD_SGIR field, where DIV and MOD are the integer division and modulo operations:
These registers are used only when affinity routing is not enabled. When affinity routing is enabled for the Security state of an interrupt then the bit associated with SGI in that Security state is RES0. An implementation is permitted to make the register RAZ/WI in this case.
A register bit that corresponds to an unimplemented SGI is RAZ/WI.
These registers are byte-accessible.
If the GIC implementation supports two Security states:
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0F20 + (4 * n) | GICD_SPENDSGIR<n> |
Accesses to this register are RW.
Interrupt Controller Type Register
Provides information about what features the GIC implementation supports. It indicates:
This register is available in all configurations of the GIC. When GICD_CTLR.DS==0, this register is Common.
GICD_TYPER is a 32-bit register.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ESPI_range | RSS | No1N | A3V | IDbits | DVIS | LPIS | MBIS | num_LPIs | SecurityExtn | NMI | ESPI | CPUNumber | ITLinesNumber |
Indicates the maximum INTID in the Extended SPI range.
Maximum Extended SPI INTID is (32*(ESPI_range + 1) + 4095).
The ESPI_range field only indicates the maximum number of SPIs that the GIC implementation might support. This value determines the number of instances of the following interrupt registers:
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
Reserved, RES0.
Range Selector Support.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| RSS | Meaning |
|---|---|
| 0b0 | The IRI supports targeted SGIs with affinity level 0 values of 0, 15. |
| 0b1 | The IRI supports targeted SGIs with affinity level 0 values of 0, 255. |
Access to this field is RO.
Indicates whether 1 of N SPI interrupts are supported.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| No1N | Meaning |
|---|---|
| 0b0 | 1 of N SPI interrupts are supported. |
| 0b1 | 1 of N SPI interrupts are not supported. |
Access to this field is RO.
Affinity 3 valid. Indicates whether the Distributor supports nonzero values of Affinity level 3.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| A3V | Meaning |
|---|---|
| 0b0 | The Distributor only supports zero values of Affinity level 3. |
| 0b1 | The Distributor supports nonzero values of Affinity level 3. |
Access to this field is RO.
The number of interrupt identifier bits supported, minus one.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
Indicates whether the implementation supports Direct Virtual LPI injection.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| DVIS | Meaning |
|---|---|
| 0b0 | The implementation does not support Direct Virtual LPI injection. |
| 0b1 | The implementation supports Direct Virtual LPI injection. |
Access to this field is RO.
Reserved, RES0.
Indicates whether the implementation supports LPIs.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| LPIS | Meaning |
|---|---|
| 0b0 | The implementation does not support LPIs. |
| 0b1 | The implementation supports LPIs. |
Access to this field is RO.
Indicates whether the implementation supports message-based interrupts by writing to Distributor registers.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| MBIS | Meaning |
|---|---|
| 0b0 | The implementation does not support message-based interrupts by writing to Distributor registers. The GICD_CLRSPI_NSR, GICD_SETSPI_NSR, GICD_CLRSPI_SR, and GICD_SETSPI_SR registers are reserved. |
| 0b1 | The implementation supports message-based interrupts by writing to the GICD_CLRSPI_NSR, GICD_SETSPI_NSR, GICD_CLRSPI_SR, or GICD_SETSPI_SR registers. |
Access to this field is RO.
Number of supported LPIs.
0b00000 Number of LPIs as indicated by GICD_TYPER.IDbits.
All other values Number of LPIs supported is 2(num_LPIs+1).
Available LPI INTIDs are 8192..(8192 + 2(num_LPIs+1), 1).
This field cannot indicate a maximum LPI INTID greater than that indicated by GICD_TYPER.IDbits.
When the supported INTID width is less than 14 bits, this field is RES0 and no LPIs are supported.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
Indicates whether the GIC implementation supports two Security states.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| SecurityExtn | Meaning |
|---|---|
| 0b0 | The GIC implementation supports only a single Security state. |
| 0b1 | The GIC implementation supports two Security states. |
Accessing this field has the following behavior:
Non-maskable Interrupts.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| NMI | Meaning |
|---|---|
| 0b0 | Non-maskable interrupt property not supported. |
| 0b1 | Non-maskable interrupt property is supported. |
Access to this field is RO.
Extended SPI.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| ESPI | Meaning |
|---|---|
| 0b0 | Extended SPI range not implemented. |
| 0b1 | Extended SPI range implemented. |
Access to this field is RO.
Reports the number of PEs that can be used when affinity routing is not enabled, minus 1.
These PEs must be numbered contiguously from zero, but the relationship between this number and the affinity hierarchy from MPIDR is IMPLEMENTATION DEFINED. If the implementation does not support ARE being zero, this field is 000.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
For the INTID range 32 to 1019, indicates the maximum SPI supported.
If the value of this field is N, the maximum SPI INTID is 32(N+1) minus 1. For example, 00011 specifies that the maximum SPI INTID is 127.
Regardless of the range of INTIDs defined by this field, interrupt IDs 1020-1023 are reserved for special purposes.
A value of 0 indicates no SPIs are supported.
This field has an IMPLEMENTATION DEFINED value.
Access to this field is RO.
The ITLinesNumber field only indicates the maximum number of SPIs that the GIC implementation might support. This value determines the number of instances of the following interrupt registers:
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0004 | GICD_TYPER |
Accesses to this register are RO.
Interrupt Controller Type Register 2
Provides information about which features the GIC implementation supports.
When GICD_CTLR.DS == 0, this register is Common.
GICD_TYPER2 is a 32-bit register.
| 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 | nASSGIcap | VIL | RES0 | VID |
Reserved, RES0.
Indicates whether SGIs can be configured to not have an active state.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| nASSGIcap | Meaning |
|---|---|
| 0b0 | SGIs have an active state. |
| 0b1 | SGIs can be globally configured not to have an active state. |
This bit is RES0 on implementations that support two Security states.
Access to this field is RO.
Indicates whether 16 bits of vPEID are implemented.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| VIL | Meaning |
|---|---|
| 0b0 | GIC supports 16-bit vPEID. |
| 0b1 | GIC supports GICD_TYPER2.VID + 1 bits of vPEID. |
Access to this field is RO.
Reserved, RES0.
Reserved, RES0.
The number of bits vPEID.
The value of this field is an IMPLEMENTATION DEFINED choice of:
| VID | Meaning |
|---|---|
| 0b00000..0b01111 | The number of vPEID bits implemented, minus one. |
Access to this field is RO.
Reserved, RES0.
| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x000C | GICD_TYPER2 |
Accesses to this register are RO.
Active Priorities Registers
These registers track which preemption levels are active in the virtual CPU interface, and indicate the current active priority. Corresponding bits are set to 1 in this register when an interrupt is acknowledged, based on GICH_LR<n>.Priority, and the least significant bit set is cleared on EOI.
This register is present only when FEAT_GICv3_LEGACY is implemented and EL2 is implemented. Otherwise, direct accesses to GICH_APR<n> are RES0.
This register is available when the GIC implementation supports interrupt virtualization.
The number of registers required depends on how many bits are implemented in GICH_LR<n>.Priority:
GICH_APR<n> is a 32-bit register.
| 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 |
Active priorities. Possible values of each bit are:
| P<x> | Meaning |
|---|---|
| 0b0 | There is no interrupt active at the priority corresponding to that bit. |
| 0b1 | There is an interrupt active at the priority corresponding to that bit. |
The correspondence between priorities and bits depends on the number of bits of priority that are implemented.
If 5 bits of priority are implemented (bits [7:3] of priority), then there are 32 priority groups, and the active state of these priorities are held in GICH_APR0 in the bits corresponding to Priority[7:3].
If 6 bits of priority are implemented (bits [7:2] of priority), then there are 64 priority groups, and:
The active state of priorities 0, 124 are held in GICH_APR0 in the bits corresponding to 0:Priority[6:2].
The active state of priorities 128, 252 are held in GICH_APR1 in the bits corresponding to 1:Priority[6:2]. If 7 bits of priority are implemented (bits [7:1] of priority), then there are 128 priority groups, and:
The active state of priorities 0, 62 are held in GICH_APR0 in the bits corresponding to 00:Priority[5:1].
The active state of priorities 64, 126 are held in GICH_APR1 in the bits corresponding to 01:Priority[5:1].
The active state of priorities 128, 190 are held in GICH_APR2 in the bits corresponding to 10:Priority[5:1].
The active state of priorities 192, 254 are held in GICH_APR3 in the bits corresponding to 11:Priority[5:1]. The reset behavior of this field is:
On a Warm reset, this field resets to the expression 0x00000000.
These registers are used only when System register access is not enabled. When System register access is enabled the following registers provide equivalent functionality:
In AArch64:
For Group 0, ICH_AP0R<n>_EL2.
For Group 1, ICH_AP1R<n>_EL2. In AArch32:
For Group 0, ICH_AP0R<n>.
For Group 1, ICH_AP1R<n>.
| Component | Offset | Instance |
|---|---|---|
| GIC Virtual interface control | 0x00F0 + (4 * n) | GICH_APR<n> |
Accessible as follows:
End Interrupt Status Register
Indicates which List registers have outstanding EOI maintenance interrupts.
This register is present only when FEAT_GICv3_LEGACY is implemented and EL2 is implemented. Otherwise, direct accesses to GICH_EISR are RES0.
This register is available when the GIC implementation supports interrupt virtualization.
GICH_EISR is a 32-bit register.
| 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 | Status15 | Status14 | Status13 | Status12 | Status11 | Status10 | Status9 | Status8 | Status7 | Status6 | Status5 | Status4 | Status3 | Status2 | Status1 | Status0 |
Reserved, RES0.
EOI maintenance interrupt status for List register <n>:
| Status<n> | Meaning |
|---|---|
| 0b0 | GICH_LR<n> does not have an EOI maintenance interrupt. |
| 0b1 | GICH_LR<n> has an EOI maintenance interrupt that has not been handled. |
For any GICH_LR<n> register, the corresponding status bit is set to 1 if all of the following are true:
GICH_LR<n>.State is 0b00.
GICH_LR<n>.HW == 0.
GICH_LR<n>.EOI == 1. The reset behavior of this field is:
On a Warm reset, this field resets to an architecturally UNKNOWN value.
This register is used only when System register access is not enabled. When System register access is enabled:
| Component | Offset | Instance |
|---|---|---|
| GIC Virtual interface control | 0x0020 | GICH_EISR |
Accessible as follows:
Hypervisor Control Register
Controls the virtual CPU interface.
This register is present only when FEAT_GICv3_LEGACY is implemented and EL2 is implemented. Otherwise, direct accesses to GICH_HCR are RES0.
This register is available when the GIC implementation supports interrupt virtualization.
GICH_HCR is a 32-bit register.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EOICount | RES0 | VGrp1DIE | VGrp1EIE | VGrp0DIE | VGrp0EIE | NPIE | LRENPIE | UIE | En |
Counts the number of EOIs received that do not have a corresponding entry in the List registers. The virtual CPU interface increments this field automatically when a matching EOI is received. EOIs that do not clear a bit in GICH_APR<n> do not cause an increment. If an EOI occurs when the value of this field is 31, then the field wraps to 0.
The maintenance interrupt is asserted whenever this field is nonzero and GICH_HCR.LRENPIE == 1.
The reset behavior of this field is:
Reserved, RES0.
VM Group 1 Disabled Interrupt Enable.
Enables the signaling of a maintenance interrupt while signaling of Group 1 interrupts from the virtual CPU interface to the connected virtual machine is disabled:
| VGrp1DIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | Maintenance interrupt signaled when GICV_CTLR.EnableGrp1 == 0. |
The reset behavior of this field is:
VM Group 1 Enabled Interrupt Enable.
Enables the signaling of a maintenance interrupt while signaling of Group 1 interrupts from the virtual CPU interface to the connected virtual machine is enabled:
| VGrp1EIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | Maintenance interrupt signaled when GICV_CTLR.EnableGrp1 == 1. |
The reset behavior of this field is:
VM Group 0 Disabled Interrupt Enable.
Enables the signaling of a maintenance interrupt while signaling of Group 0 interrupts from the virtual CPU interface to the connected virtual machine is disabled:
| VGrp0DIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | Maintenance interrupt signaled when GICV_CTLR.EnableGrp0 == 0. |
The reset behavior of this field is:
VM Group 0 Enabled Interrupt Enable.
Enables the signaling of a maintenance interrupt while signaling of Group 0 interrupts from the virtual CPU interface to the connected virtual machine is enabled:
| VGrp0EIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | Maintenance interrupt signaled when GICV_CTLR.EnableGrp0 == 1. |
The reset behavior of this field is:
No Pending Interrupt Enable.
Enables the signaling of a maintenance interrupt while no pending interrupts are present in the List registers:
| NPIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | Maintenance interrupt signaled while the List registers contain no interrupts in the pending state. |
The reset behavior of this field is:
List Register Entry Not Present Interrupt Enable.
Enables the signaling of a maintenance interrupt while the virtual CPU interface does not have a corresponding valid List register for an EOI request:
| LRENPIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | Maintenance interrupt signaled while GICH_HCR.EOICount is not 0. |
The reset behavior of this field is:
Underflow Interrupt Enable.
Enables the signaling of a maintenance interrupt when the List registers are either empty or hold only one valid entry.
| UIE | Meaning |
|---|---|
| 0b0 | Maintenance interrupt disabled. |
| 0b1 | A maintenance interrupt is signaled if zero or one of the List register entries are marked as a valid interrupt. |
The reset behavior of this field is:
Enable.
Global enable bit for the virtual CPU interface.
| En | Meaning |
|---|---|
| 0b0 | Virtual CPU interface operation is disabled. |
| 0b1 | Virtual CPU interface operation is enabled. |
When this field is 0:
The virtual CPU interface does not signal any maintenance interrupts.
The virtual CPU interface does not signal any virtual interrupts.
A read of GICV_IAR or GICV_AIAR returns a spurious interrupt ID. The reset behavior of this field is:
On a Warm reset, this field resets to an architecturally UNKNOWN value.
The VGrp1DIE, VGrp1EIE, VGrp0DIE, and VGrp0EIE fields permit the hypervisor to track the virtual CPU interfaces that are enabled. The hypervisor can then route interrupts that have multiple targets correctly and efficiently, without having to read the virtual CPU interface status.
See 'Maintenance interrupts' in ArmĀ® Generic Interrupt Controller Architecture Specification, GIC architecture version 3.0 and version 4.0 (ARM IHI 0069) and GICH_MISR for more information.
This register is used only when System register access is not enabled. When System register access is enabled:
| Component | Offset | Instance |
|---|---|---|
| GIC Virtual interface control | 0x0000 | GICH_HCR |
Accessible as follows: