[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_ISPENDRE, n = 0 to 31 through GICH_HCR.

GICD_ISPENDR<n>E, n = 0, 31

Interrupt Set-Pending Registers (Extended SPI range)

Adds the pending state to the corresponding SPI in the extended SPI range.

Configuration

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.

Attributes

GICD_ISPENDR<n>E is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
Set_pending_bit31Set_pending_bit30Set_pending_bit29Set_pending_bit28Set_pending_bit27Set_pending_bit26Set_pending_bit25Set_pending_bit24Set_pending_bit23Set_pending_bit22Set_pending_bit21Set_pending_bit20Set_pending_bit19Set_pending_bit18Set_pending_bit17Set_pending_bit16Set_pending_bit15Set_pending_bit14Set_pending_bit13Set_pending_bit12Set_pending_bit11Set_pending_bit10Set_pending_bit9Set_pending_bit8Set_pending_bit7Set_pending_bit6Set_pending_bit5Set_pending_bit4Set_pending_bit3Set_pending_bit2Set_pending_bit1Set_pending_bit0

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

For the extended SPIs, adds the pending state to interrupt number x. Reads and writes have the following behavior:

Set_pending_bit<x>Meaning
0b0If read, indicates that the corresponding interrupt is not pending. If written, has no effect.
0b1If 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:

Additional information

For INTID m, when DIV and MOD are the integer division and modulo operations:

Accessing GICD_ISPENDR<n>E

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.

GICD_ISPENDR<n>E can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x1600 + (4 * n) | GICD_ISPENDR<n>E |

Accesses to this register are RW.


GICD_ITARGETSR<n>, n = 0, 254

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.

Configuration

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:

Attributes

GICD_ITARGETSR<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
CPU_targets_offset_3BCPU_targets_offset_2BCPU_targets_offset_1BCPU_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.

CPU_targets_offset_3B, bits [31:24]:

PE targets for an interrupt, at byte offset 3.

The reset behavior of this field is:

CPU_targets_offset_2B, bits [23:16]:

PE targets for an interrupt, at byte offset 2.

The reset behavior of this field is:

CPU_targets_offset_1B, bits [15:8]:

PE targets for an interrupt, at byte offset 1.

The reset behavior of this field is:

CPU_targets_offset_0B, bits [7:0]:

PE targets for an interrupt, at byte offset 0.

The reset behavior of this field is:

Additional information

The bits that are set to 1 in the PE targets field determine which PEs are targeted:

Value of PE targets fieldInterrupt targets
0bxxxxxxx1CPU interface 0
0bxxxxxx1xCPU interface 1
0bxxxxx1xxCPU interface 2
0bxxxx1xxxCPU interface 3
0bxxx1xxxxCPU interface 4
0bxx1xxxxxCPU interface 5
0bx1xxxxxxCPU interface 6
0b1xxxxxxxCPU interface 7

For interrupt ID m, when DIV and MOD are the integer division and modulo operations:

Accessing GICD_ITARGETSR<n>

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.

GICD_ITARGETSR<n> can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0800 + (4 * n) | GICD_ITARGETSR<n> |

Accesses to this register are RW.


GICD_NSACR<n>, n = 0, 63

Non-secure Access Control Registers

Enables Secure software to permit Non-secure software on a particular PE to create and control Group 0 interrupts.

Configuration

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.

Attributes

GICD_NSACR<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NS_access15NS_access14NS_access13NS_access12NS_access11NS_access10NS_access9NS_access8NS_access7NS_access6NS_access5NS_access4NS_access3NS_access2NS_access1NS_access0

NS_access<x>, bits [2x+1:2x], for x = 15 to 0:

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
0b00No Non-secure access is permitted to fields associated with the corresponding interrupt.
0b01Non-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.
0b10As 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.
0b11For 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:

Additional information

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.

Accessing GICD_NSACR<n>

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.

GICD_NSACR<n> can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0E00 + (4 * n) | GICD_NSACR<n> |

Accessible as follows:


GICD_SETSPI_NSR

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.

Configuration

If GICD_TYPER.MBIS == 0, this register is reserved.

When GICD_CTLR.DS == 1, this register provides functionality for all SPIs.

Attributes

GICD_SETSPI_NSR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0INTID

Bits [31:13]:

Reserved, RES0.

INTID, bits [12:0]:

The INTID of the SPI.

Additional information

The function of this register depends on whether the targeted SPI is configured to be an edge-triggered or level-sensitive interrupt:

Accessing GICD_SETSPI_NSR

Writes to this register have no effect if:

A Secure access to this register can set the pending state of any valid SPI.

GICD_SETSPI_NSR can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0040 | GICD_SETSPI_NSR |

Accesses to this register are WO.


GICD_SETSPI_SR

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.

Configuration

If GICD_TYPER.MBIS == 0, this register is reserved.

When GICD_CTLR.DS == 1, this register is WI.

Attributes

GICD_SETSPI_SR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0INTID

Bits [31:13]:

Reserved, RES0.

INTID, bits [12:0]:

The INTID of the SPI.

Additional information

The function of this register depends on whether the targeted SPI is configured to be an edge-triggered or level-sensitive interrupt:

Accessing GICD_SETSPI_SR

Writes to this register have no effect if:

GICD_SETSPI_SR can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0050 | GICD_SETSPI_SR |

Accessible as follows:


GICD_SGIR

Software Generated Interrupt Register

Controls the generation of SGIs.

Configuration

This register is available in all configurations of the GIC. If the GIC supports two Security states this register is Common.

Attributes

GICD_SGIR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0TargetListFilterCPUTargetListNSATTRES0INTID

Bits [31:26]:

Reserved, RES0.

TargetListFilter, bits [25:24]:

Determines how the Distributor processes the requested SGI.

TargetListFilterMeaning
0b00Forward the interrupt to the CPU interfaces specified by GICD_SGIR.CPUTargetList.
0b01Forward the interrupt to all CPU interfaces except that of the PE that requested the interrupt.
0b10Forward the interrupt only to the CPU interface of the PE that requested the interrupt.
0b11Reserved.

CPUTargetList, bits [23:16]:

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.

NSATT, bit [15]:

Specifies the required group of the SGI.

NSATTMeaning
0b0Forward the SGI specified in the INTID field to a specified CPU interface only if the SGI is configured as Group 0 on that interface.
0b1Forward 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.

Bits [14:4]:

Reserved, RES0.

INTID, bits [3:0]:

The INTID of the SGI to forward to the specified CPU interfaces.

Accessing GICD_SGIR

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.

GICD_SGIR can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0F00 | GICD_SGIR |

Accesses to this register are WO.


GICD_SPENDSGIR<n>, n = 0, 3

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.

Configuration

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.

Attributes

GICD_SPENDSGIR<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
SGI_set_pending_bits3SGI_set_pending_bits2SGI_set_pending_bits1SGI_set_pending_bits0

SGI_set_pending_bits<x>, bits [8x+7:8x], for x = 3 to 0:

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
0x00If read, indicates that the SGI from the corresponding PE is not pending and is not active and pending. If written, has no effect.
0x01If 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:

Additional information

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:

Accessing GICD_SPENDSGIR<n>

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:

GICD_SPENDSGIR<n> can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0F20 + (4 * n) | GICD_SPENDSGIR<n> |

Accesses to this register are RW.


GICD_TYPER

Interrupt Controller Type Register

Provides information about what features the GIC implementation supports. It indicates:

Configuration

This register is available in all configurations of the GIC. When GICD_CTLR.DS==0, this register is Common.

Attributes

GICD_TYPER is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
ESPI_rangeRSSNo1NA3VIDbitsDVISLPISMBISnum_LPIsSecurityExtnNMIESPICPUNumberITLinesNumber

ESPI_range, bits [31:27] when GICD_TYPER.ESPI == '1':

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.

Otherwise:

Reserved, RES0.

RSS, bit [26]:

Range Selector Support.

The value of this field is an IMPLEMENTATION DEFINED choice of:

RSSMeaning
0b0The IRI supports targeted SGIs with affinity level 0 values of 0, 15.
0b1The IRI supports targeted SGIs with affinity level 0 values of 0, 255.

Access to this field is RO.

No1N, bit [25]:

Indicates whether 1 of N SPI interrupts are supported.

The value of this field is an IMPLEMENTATION DEFINED choice of:

No1NMeaning
0b01 of N SPI interrupts are supported.
0b11 of N SPI interrupts are not supported.

Access to this field is RO.

A3V, bit [24]:

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:

A3VMeaning
0b0The Distributor only supports zero values of Affinity level 3.
0b1The Distributor supports nonzero values of Affinity level 3.

Access to this field is RO.

IDbits, bits [23:19]:

The number of interrupt identifier bits supported, minus one.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

DVIS, bit [18] when GICv4 is implemented:

Indicates whether the implementation supports Direct Virtual LPI injection.

The value of this field is an IMPLEMENTATION DEFINED choice of:

DVISMeaning
0b0The implementation does not support Direct Virtual LPI injection.
0b1The implementation supports Direct Virtual LPI injection.

Access to this field is RO.

Otherwise:

Reserved, RES0.

LPIS, bit [17]:

Indicates whether the implementation supports LPIs.

The value of this field is an IMPLEMENTATION DEFINED choice of:

LPISMeaning
0b0The implementation does not support LPIs.
0b1The implementation supports LPIs.

Access to this field is RO.

MBIS, bit [16]:

Indicates whether the implementation supports message-based interrupts by writing to Distributor registers.

The value of this field is an IMPLEMENTATION DEFINED choice of:

MBISMeaning
0b0The 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.
0b1The 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.

num_LPIs, bits [15:11]:

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.

SecurityExtn, bit [10]:

Indicates whether the GIC implementation supports two Security states.

The value of this field is an IMPLEMENTATION DEFINED choice of:

SecurityExtnMeaning
0b0The GIC implementation supports only a single Security state.
0b1The GIC implementation supports two Security states.

Accessing this field has the following behavior:

NMI, bit [9]:

Non-maskable Interrupts.

The value of this field is an IMPLEMENTATION DEFINED choice of:

NMIMeaning
0b0Non-maskable interrupt property not supported.
0b1Non-maskable interrupt property is supported.

Access to this field is RO.

ESPI, bit [8]:

Extended SPI.

The value of this field is an IMPLEMENTATION DEFINED choice of:

ESPIMeaning
0b0Extended SPI range not implemented.
0b1Extended SPI range implemented.

Access to this field is RO.

CPUNumber, bits [7:5]:

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.

ITLinesNumber, bits [4:0]:

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.

Additional information

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:

Accessing GICD_TYPER

GICD_TYPER can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x0004 | GICD_TYPER |

Accesses to this register are RO.


GICD_TYPER2

Interrupt Controller Type Register 2

Provides information about which features the GIC implementation supports.

Configuration

When GICD_CTLR.DS == 0, this register is Common.

Attributes

GICD_TYPER2 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0nASSGIcapVILRES0VID

Bits [31:9]:

Reserved, RES0.

nASSGIcap, bit [8]:

Indicates whether SGIs can be configured to not have an active state.

The value of this field is an IMPLEMENTATION DEFINED choice of:

nASSGIcapMeaning
0b0SGIs have an active state.
0b1SGIs 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.

VIL, bit [7] when GICv4.1 is implemented:

Indicates whether 16 bits of vPEID are implemented.

The value of this field is an IMPLEMENTATION DEFINED choice of:

VILMeaning
0b0GIC supports 16-bit vPEID.
0b1GIC supports GICD_TYPER2.VID + 1 bits of vPEID.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Bits [6:5]:

Reserved, RES0.

VID, bits [4:0] when GICD_TYPER2.VIL == '1':

The number of bits vPEID.

The value of this field is an IMPLEMENTATION DEFINED choice of:

VIDMeaning
0b00000..0b01111The number of vPEID bits implemented, minus one.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Accessing GICD_TYPER2

GICD_TYPER2 can be accessed through the memory-mapped interfaces:

| Component | Frame | Offset | Instance | | GIC Distributor | Dist_base | 0x000C | GICD_TYPER2 |

Accesses to this register are RO.


GICH_APR<n>, n = 0, 3

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.

Configuration

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:

Attributes

GICH_APR<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
P31P30P29P28P27P26P25P24P23P22P21P20P19P18P17P16P15P14P13P12P11P10P9P8P7P6P5P4P3P2P1P0

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

Active priorities. Possible values of each bit are:

P<x>Meaning
0b0There is no interrupt active at the priority corresponding to that bit.
0b1There 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:

Accessing GICH_APR<n>

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:

GICH_APR<n> can be accessed through the memory-mapped interfaces:

ComponentOffsetInstance
GIC Virtual interface control0x00F0 + (4 * n)GICH_APR<n>

Accessible as follows:


GICH_EISR

End Interrupt Status Register

Indicates which List registers have outstanding EOI maintenance interrupts.

Configuration

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.

Attributes

GICH_EISR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0Status15Status14Status13Status12Status11Status10Status9Status8Status7Status6Status5Status4Status3Status2Status1Status0

Bits [31:16]:

Reserved, RES0.

Status<n>, bit [n], for n = 15 to 0:

EOI maintenance interrupt status for List register <n>:

Status<n>Meaning
0b0GICH_LR<n> does not have an EOI maintenance interrupt.
0b1GICH_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:

Accessing GICH_EISR

This register is used only when System register access is not enabled. When System register access is enabled:

GICH_EISR can be accessed through the memory-mapped interfaces:

ComponentOffsetInstance
GIC Virtual interface control0x0020GICH_EISR

Accessible as follows:


GICH_HCR

Hypervisor Control Register

Controls the virtual CPU interface.

Configuration

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.

Attributes

GICH_HCR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
EOICountRES0VGrp1DIEVGrp1EIEVGrp0DIEVGrp0EIENPIELRENPIEUIEEn

EOICount, bits [31:27]:

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:

Bits [26:8]:

Reserved, RES0.

VGrp1DIE, bit [7]:

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:

VGrp1DIEMeaning
0b0Maintenance interrupt disabled.
0b1Maintenance interrupt signaled when GICV_CTLR.EnableGrp1 == 0.

The reset behavior of this field is:

VGrp1EIE, bit [6]:

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:

VGrp1EIEMeaning
0b0Maintenance interrupt disabled.
0b1Maintenance interrupt signaled when GICV_CTLR.EnableGrp1 == 1.

The reset behavior of this field is:

VGrp0DIE, bit [5]:

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:

VGrp0DIEMeaning
0b0Maintenance interrupt disabled.
0b1Maintenance interrupt signaled when GICV_CTLR.EnableGrp0 == 0.

The reset behavior of this field is:

VGrp0EIE, bit [4]:

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:

VGrp0EIEMeaning
0b0Maintenance interrupt disabled.
0b1Maintenance interrupt signaled when GICV_CTLR.EnableGrp0 == 1.

The reset behavior of this field is:

NPIE, bit [3]:

No Pending Interrupt Enable.

Enables the signaling of a maintenance interrupt while no pending interrupts are present in the List registers:

NPIEMeaning
0b0Maintenance interrupt disabled.
0b1Maintenance interrupt signaled while the List registers contain no interrupts in the pending state.

The reset behavior of this field is:

LRENPIE, bit [2]:

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:

LRENPIEMeaning
0b0Maintenance interrupt disabled.
0b1Maintenance interrupt signaled while GICH_HCR.EOICount is not 0.

The reset behavior of this field is:

UIE, bit [1]:

Underflow Interrupt Enable.

Enables the signaling of a maintenance interrupt when the List registers are either empty or hold only one valid entry.

UIEMeaning
0b0Maintenance interrupt disabled.
0b1A 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:

En, bit [0]:

Enable.

Global enable bit for the virtual CPU interface.

EnMeaning
0b0Virtual CPU interface operation is disabled.
0b1Virtual CPU interface operation is enabled.

When this field is 0:

Additional information

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.

Accessing GICH_HCR

This register is used only when System register access is not enabled. When System register access is enabled:

GICH_HCR can be accessed through the memory-mapped interfaces:

ComponentOffsetInstance
GIC Virtual interface control0x0000GICH_HCR

Accessible as follows:

------------------------------------------------------------------------------ Page 1 of 1. End of thread.