[Writeup] External debug and trace register pages: part 17 of 22 ================================================================ Section: Silicon & Architectures Started: 2026-11-28 17:39 UTC by admin Replies: 0, last post 2026-11-28 17:39 UTC Page: 1 of 1 Web: https://romdump.net/t/76 ------------------------------------------------------------------------------ #96 admin, 2026-11-28 17:39 UTC [OP] (edited) Source: https://romdump.net/raw/96
Archived Arm source pages for the External debug and trace register pages.
Part 17 of 22. This part covers TRBMAR_EL1 through TRCACVR
Trace Buffer Memory Attribute Register
Controls Trace Buffer Unit accesses to memory.
External register TRBMAR_EL1 bits [63:0] are architecturally mapped to AArch64 System register TRBMAR_EL1[63:0] when FEAT_TRBE_EXT is implemented.
TRBMAR_EL1 is in the Core power domain.
This register is present only when FEAT_TRBE_EXT is implemented. Otherwise, direct accesses to TRBMAR_EL1 are RES0.
TRBMAR_EL1 is a 64-bit register.
| 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 | |||||||||||||||||||||||||||||||
| RES0 | PAS | SH | Attr |
Reserved, RES0.
Physical address specifier. Defines the PAS attribute for memory addressed by the buffer in External mode.
| PAS | Meaning | Applies when |
|---|---|---|
| 0b00 | Secure. | When FEAT_Secure is implemented |
| 0b01 | Non-secure. | |
| 0b10 | Root. | When FEAT_RME is implemented |
| 0b11 | Realm. | When FEAT_RME is implemented |
All other values are reserved.
If the Trace Buffer Unit is using external mode and either TRBMAR_EL1.PAS is set to a reserved value, or the IMPLEMENTATION DEFINED authentication interface prohibits invasive debug of the Security state corresponding to the physical address space selected by TRBMAR_EL1.PAS, then when the Trace Buffer Unit receives trace data from the trace unit, it does not write the trace data to memory and generates a trace buffer management event. That is, if any of the following apply:
The reset behavior of this field is:
Trace buffer stage 1 shareability domain. Defines the shareability domain for Normal memory used by the trace buffer.
| SH | Meaning |
|---|---|
| 0b00 | Non-shareable. |
| 0b10 | Outer Shareable. |
| 0b11 | Inner Shareable. |
All other values are reserved.
If the trace buffer pointers specify virtual addresses, the memory attributes are defined by the translation tables and this field is ignored.
This field is ignored when TRBMAR_EL1.Attr specifies any of the following memory types:
The reset behavior of this field is:
Trace buffer stage 1 memory type and attributes. Defines the memory type and, for Normal memory, the cacheability attributes, for memory addressed by the trace buffer.
The encoding of this field is the same as that of a MAIR_ELx.Attr<n> field, as follows:
| Attr | Meaning | |
|---|---|---|
| '0000dd00' | Device memory. See encoding of 'dd' for the type of Device memory. | |
| '0000dd01' | If FEAT_XS is implemented: Device memory with the XS attribute set to 0. See encoding of 'dd' for the type of Device memory. Otherwise,UNPREDICTABLE. | |
| '0000dd1x' | UNPREDICTABLE. | |
| 'ooooiiii' | where oooo != 0000 and iiii != 0000 | Normal memory. See encoding of 'oooo' and 'iiii' for the type of Normal memory. |
| '01000000' | If FEAT_XS is implemented: Normal Inner Non-cacheable, Outer Non-cacheable memory with the XS attribute set to 0. Otherwise,UNPREDICTABLE. | |
| '10100000' | If FEAT_XS is implemented: Normal Inner Write-through Cacheable, Outer Write-through Cacheable, Read-Allocate, No-Write Allocate, Non-transient memory with the XS attribute set to 0. Otherwise,UNPREDICTABLE. | |
| '11110000' | If FEAT_MTE2 is implemented: Tagged Normal Inner Write-Back, Outer Write-Back, Read-Allocate, Write-Allocate Non-transient memory. Otherwise,UNPREDICTABLE. | |
| 'xxxx0000' | where xxxx != 0000 and xxxx != 0100 and xxxx != 1010 and xxxx != 1111 | UNPREDICTABLE. |
dd is encoded as follows:
| 'dd' | Meaning |
|---|---|
| '00' | Device-nGnRnE memory. |
| '01' | Device-nGnRE memory. |
| '10' | Device-nGRE memory. |
| '11' | Device-GRE memory. |
oooo is encoded as follows:
| 'oooo' | Meaning | |
|---|---|---|
| '0000' | See encoding of Attr. | |
| '00RW' | where RW != 00 | Normal memory, Outer Write-Through Transient. |
| '0100' | Normal memory, Outer Non-cacheable. | |
| '01RW' | where RW != 00 | Normal memory, Outer Write-Back Transient. |
| '10RW' | Normal memory, Outer Write-Through Non-transient. | |
| '11RW' | Normal memory, Outer Write-Back Non-transient. |
R encodes the Outer Read-Allocate policy and W encodes the Outer Write-Allocate policy.
iiii is encoded as follows:
| 'iiii' | Meaning | |
|---|---|---|
| '0000' | See encoding of Attr. | |
| '00RW' | where RW != 00 | Normal memory, Inner Write-Through Transient. |
| '0100' | Normal memory, Inner Non-cacheable. | |
| '01RW' | where RW != 00 | Normal memory, Inner Write-Back Transient. |
| '10RW' | Normal memory, Inner Write-Through Non-transient. | |
| '11RW' | Normal memory, Inner Write-Back Non-transient. |
R encodes the Inner Read-Allocate policy and W encodes the Inner Write-Allocate policy.
In oooo and iiii, R and W are encoded as follows:
| 'R' or 'W' | Meaning |
|---|---|
| '0' | No Allocate. |
| '1' | Allocate. |
When FEAT_XS is implemented, stage 1 Inner Write-Back Cacheable, Outer Write-Back Cacheable memory types have the XS attribute set to 0.
If the trace buffer pointers specify virtual addresses, the memory attributes are defined by the translation tables and this field is ignored.
The reset behavior of this field is:
The PE might ignore a write to TRBMAR_EL1 if any of the following apply:
| Component | Offset | Instance |
|---|---|---|
| TRBE | 0x028 | TRBMAR_EL1 |
Accessible as follows:
Trace Buffer MPAM Configuration Register
Defines the PARTID, PMG, and MPAM_SP values used by the trace buffer unit in external mode.
External register TRBMPAM_EL1 bits [63:0] are architecturally mapped to AArch64 System register TRBMPAM_EL1[63:0].
TRBMPAM_EL1 is in the Core power domain.
This register is present only when FEAT_TRBE_EXT is implemented and FEAT_TRBE_MPAM is implemented. Otherwise, direct accesses to TRBMPAM_EL1 are RES0.
TRBMPAM_EL1 is a 64-bit register.
| 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 | PMG | ||||||||||||||||||||||||||||||
| RES0 | EN | RES0 | PARTID |
Reserved, RES0.
Performance Monitoring Group. Selects the PMG.
Only sufficient low-order bits are required to represent the TRBDEVID1.PMG_MAX. Higher-order bits are RES0.
This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.
The reset behavior of this field is:
Reserved, RES0.
Enable. Enables use of non-Default MPAM values.
| EN | Meaning |
|---|---|
| 0b0 | Use Default physical PARTID and Default physical PMG values. |
| 0b1 | Use TRBMPAM_EL1.{PARTID, PMG}. |
This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.
The reset behavior of this field is:
Reserved, RES0.
Partition Identifier. Selects the PARTID.
Only sufficient low-order bits are required to represent the TRBDEVID1.PARTID_MAX. Higher-order bits are RES0.
This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.
The reset behavior of this field is:
| 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 | |||||||||||||||||||||||||||||||
| RES0 | EN | MPAM_SP | PMG | PARTID |
Reserved, RES0.
Enable. Enables use of non-Default MPAM values.
| EN | Meaning |
|---|---|
| 0b0 | Use Default physical PARTID and Default physical PMG values, and the PARTID space corresponding to the trace physical address space defined by TRBMAR_EL1.PAS. |
| 0b1 | Use TRBMPAM_EL1.{PARTID, PMG, MPAM_SP}. |
This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.
The reset behavior of this field is:
Partition Identifier space. Selects the PARTID space.
| MPAM_SP | Meaning | Applies when |
|---|---|---|
| 0b00 | PARTID is in the Secure PARTID space. | When FEAT_Secure is implemented |
| 0b01 | PARTID is in the Non-secure PARTID space. | |
| 0b10 | PARTID is in the Root PARTID space. | When FEAT_RME is implemented |
| 0b11 | PARTID is in the Realm PARTID space. | When FEAT_RME is implemented |
If the Trace Buffer Unit is using external mode and either TRBMPAM_EL1.MPAM_SP is set to reserved value, or the IMPLEMENTATION DEFINED authentication interface prohibits invasive debug of the Security state corresponding to the Partition Identifier space selected by TRBMPAM_EL1.MPAM_SP, then when the Trace Buffer Unit receives trace data from the trace unit, it does not write the trace data to memory and generates a trace buffer management event.
The interface prohibits invasive debug of the Security state if any of the following apply:
The reset behavior of this field is:
Performance Monitoring Group. Selects the PMG.
Only sufficient low-order bits are required to represent the TRBDEVID1.PMG_MAX. Higher-order bits are RES0.
This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.
The reset behavior of this field is:
Partition Identifier. Selects the PARTID.
Only sufficient low-order bits are required to represent the TRBDEVID1.PARTID_MAX. Higher-order bits are RES0.
This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.
The reset behavior of this field is:
The PE might ignore a write to TRBMPAM_EL1 if any of the following apply:
| Component | Offset | Instance |
|---|---|---|
| TRBE | 0x040 | TRBMPAM_EL1 |
Accessible as follows:
Trace Buffer Write Pointer Register
Defines the current write pointer for the trace buffer.
External register TRBPTR_EL1 bits [63:0] are architecturally mapped to AArch64 System register TRBPTR_EL1[63:0] when FEAT_TRBE_EXT is implemented.
TRBPTR_EL1 is in the Core power domain.
This register is present only when FEAT_TRBE_EXT is implemented. Otherwise, direct accesses to TRBPTR_EL1 are RES0.
TRBPTR_EL1 is a 64-bit register.
| 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 |
| PTR | |||||||||||||||||||||||||||||||
| PTR |
Trace Buffer current write pointer address.
Defines the virtual address of the next entry to be written to the trace buffer.
If TRBIDR_EL1.Align is not zero, then it is IMPLEMENTATION DEFINED whether bits [M-1:0] are RES0 or read/write, where M is an integer between 1 and TRBIDR_EL1.Align inclusive.
The architecture places restrictions on the values that software can write to the pointer. For more information see 'Restrictions on Programming the Trace Buffer Unit'.
The reset behavior of this field is:
The PE might ignore a write to TRBPTR_EL1 if any of the following apply:
| Component | Offset | Instance |
|---|---|---|
| TRBE | 0x008 | TRBPTR_EL1 |
Accessible as follows:
Trace Buffer Status/syndrome Register
Provides syndrome information to software for a trace buffer management event.
External register TRBSR_EL1 bits [63:0] are architecturally mapped to AArch64 System register TRBSR_EL1[63:0] when FEAT_TRBE_EXT is implemented.
TRBSR_EL1 is in the Core power domain.
This register is present only when FEAT_TRBE_EXT is implemented. Otherwise, direct accesses to TRBSR_EL1 are RES0.
TRBSR_EL1 is a 64-bit register.
| 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 | MSS2 | ||||||||||||||||||||||||||||||
| EC | RES0 | DAT | IRQ | TRG | WRAP | RES0 | EA | S | RES0 | MSS |
Reserved, RES0.
Management event Specific Syndrome 2. Contains syndrome specific to the management event.
The syndrome contents for each management event are described in the following sections.
| 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 |
Reserved, RES0.
| 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 | HDBSSF | RES0 | TopLevel | AssuredOnly | Overlay | DirtyBit | RES0 |
Reserved, RES0.
Host Dirty state Status Structure fault.
Indicates whether the fault was caused by HDBSS.
| HDBSSF | Meaning |
|---|---|
| 0b0 | Fault was not caused by HDBSS. |
| 0b1 | Fault was caused by HDBSS. |
For any other fault, this field is RES0.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
TopLevel. Indicates if the fault was due to TopLevel.
| TopLevel | Meaning |
|---|---|
| 0b0 | Fault is not due to TopLevel. |
| 0b1 | Fault is due to TopLevel. |
Reserved, RES0.
AssuredOnly flag. If a memory access generates a stage 2 Data Abort, then this field holds information about the fault.
| AssuredOnly | Meaning |
|---|---|
| 0b0 | Data Abort is not due to AssuredOnly. |
| 0b1 | Data Abort is due to AssuredOnly. |
Reserved, RES0.
Overlay flag. If a memory access generates a Data Abort for a Permission fault, then this field holds information about the fault.
| Overlay | Meaning |
|---|---|
| 0b0 | Data Abort is not due to Overlay Permissions. |
| 0b1 | Data Abort is due to Overlay Permissions. |
Reserved, RES0.
DirtyBit flag. If a write access to memory generates a Data Abort for a Permission fault using Indirect Permission, then this field holds information about the fault.
| DirtyBit | Meaning |
|---|---|
| 0b0 | Permission Fault is not due to dirty state. |
| 0b1 | Permission Fault is due to dirty state. |
Reserved, RES0.
Reserved, RES0.
| 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 |
Reserved, RES0.
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IMPLEMENTATION DEFINED |
IMPLEMENTATION DEFINED.
Event class. Top-level description of the cause of the trace buffer management event.
| EC | Meaning | MSS | MSS2 | Applies when |
|---|---|---|---|---|
| 0b000000 | Other trace buffer management event. All trace buffer management events other than those described by the other defined Event class codes. | MSS encoding for other trace buffer management events | MSS2 encoding for other trace buffer management events | |
| 0b011110 | Granule Protection Check fault on write to trace buffer, other than Granule Protection Fault (GPF). That is, any of the following: Granule Protection Table (GPT) address size fault. GPT walk fault. External abort on GPT fetch. A GPF on translation table walk or update is reported as either a Stage 1 or Stage 2 Data Abort, as appropriate. Other GPFs are reported as a Stage 1 Data Abort. | MSS encoding for Granule Protection Check faults on write to trace buffer | MSS2 encoding for Granule Protection Check faults on write to trace buffer | When FEAT_RME is implemented |
| 0b011111 | Trace buffer management event for an IMPLEMENTATION DEFINED reason. | MSS encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason | MSS2 encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason | |
| 0b100100 | Stage 1 Data Abort on write to trace buffer. | MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer | MSS2 encoding for stage 1 or stage 2 Data Aborts on write to trace buffer | |
| 0b100101 | Stage 2 Data Abort on write to trace buffer. | MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer | MSS2 encoding for stage 1 or stage 2 Data Aborts on write to trace buffer |
All other values are reserved.
The reset behavior of this field is:
Reserved, RES0.
Data. Indicates when the Trace Buffer Unit has trace data that has not yet been written to memory.
| DAT | Meaning |
|---|---|
| 0b0 | Internal buffers are empty. All Trace operations Accepted by the Trace Buffer Unit will Complete in finite time. |
| 0b1 | Internal buffers are not empty. |
When TRBSR_EL1.{DAT, S} is {0, 1}, meaning Collection is stopped and the Trace Buffer Unit internal buffers are empty, then all trace data has been written to memory. An additional Data Synchronization Barrier may be required to ensure that the writes are Complete. When TRBSR_EL1.DAT is 0 and Collection is not stopped, there may still be trace data held by the trace unit that the Trace Buffer Unit has not Accepted.
That is, TRBSR_EL1.DAT reads as 1 when the Trace Buffer Unit has Accepted trace data from the trace unit, but has not yet written it to memory.
The reset behavior of this field is:
Reserved, RES0.
Maintenance status. Indicates that a trace buffer management event has been recorded.
| IRQ | Meaning |
|---|---|
| 0b0 | No trace buffer management event for EL1 has been recorded. |
| 0b1 | A trace buffer management event for EL1 has been recorded. |
When FEAT_TRBE_EXC is implemented, this field indicates a management event for EL1.
If FEAT_TRBE_EXC is implemented and the TRBE Profiling exception for EL1 is enabled, then when this field is 1, a TRBE Profiling exception for EL1 is pending
If FEAT_TRBE_EXC is not implemented or the TRBE Profiling exception for EL1 is disabled, then this field drives the TRBIRQ trace buffer interrupt request signal.
The reset behavior of this field is:
Triggered.
| TRG | Meaning |
|---|---|
| 0b0 | No Detected Trigger has been observed since this field was last cleared to zero. |
| 0b1 | A Detected Trigger has been observed since this field was last cleared to zero. |
The reset behavior of this field is:
Wrapped.
| WRAP | Meaning |
|---|---|
| 0b0 | The current write pointer has not wrapped since this field was last cleared to zero. |
| 0b1 | The current write pointer has wrapped since this field was last cleared to zero. |
For each byte of trace the Trace Buffer Unit Accepts and writes to the trace buffer at the address in the current write pointer, if the current write pointer is equal to the Limit pointer minus one, the current write pointer is wrapped by setting it to the Base pointer, and this field is set to 1.
The reset behavior of this field is:
Reserved, RES0.
External Abort.
| EA | Meaning |
|---|---|
| 0b0 | An External abort has not been asserted. |
| 0b1 | An External abort has been asserted and detected by the Trace Buffer Unit. |
It is IMPLEMENTATION DEFINED whether this field is set to 1 or is unchanged by the PE when a write by the Trace Buffer Unit generates an External abort on a translation table walk, translation table update, or GPT walk that is reported as an MMU fault. From Armv9.3, this field is not set to 1 by the PE for any other trace buffer management event.
The reset behavior of this field is:
Reserved, RES0.
Stopped.
| S | Meaning |
|---|---|
| 0b0 | Collection has not been stopped. |
| 0b1 | Collection is stopped. |
The reset behavior of this field is:
Reserved, RES0.
Management Event Specific Syndrome. Contains syndrome specific to the trace buffer management event.
The syndrome contents for each trace buffer management event are described in the following sections.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RES0 | BSC |
Reserved, RES0.
Trace buffer status code
| BSC | Meaning |
|---|---|
| 0b000000 | Collection not stopped, or access not allowed. |
| 0b000001 | Trace buffer filled. Collection stopped because the current write pointer wrapped to the base pointer and the trace buffer mode is Fill mode. |
| 0b000010 | Trigger Event. Collection stopped because of a Trigger Event. See TRBTRG_EL1 for more information. |
| 0b000011 | Manual Stop. Collection stopped because of a Manual Stop event. See TRBCR.ManStop for more information. |
| 0b000100 | Buffer size. The requested trace buffer size was too large. |
All other values are reserved.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RES0 | S1PTW | RES0 | FSC |
Reserved, RES0.
For a stage 2 fault, indicates whether the fault was a stage 2 fault on an access made for a stage 1 translation table walk.
| S1PTW | Meaning |
|---|---|
| 0b0 | Fault not on a stage 2 translation for a stage 1 translation walk. |
| 0b1 | Fault on the stage 2 translation of an access for a stage 1 translation walk. |
For any abort other than a stage 2 fault this bit is RES0.
Reserved, RES0.
Reserved, RES0.
Fault status code
| FSC | Meaning | Applies when |
|---|---|---|
| 0b000000 | Address size fault, level 0 of translation or translation table base register. | |
| 0b000001 | Address size fault, level 1. | |
| 0b000010 | Address size fault, level 2. | |
| 0b000011 | Address size fault, level 3. | |
| 0b000100 | Translation fault, level 0. | |
| 0b000101 | Translation fault, level 1. | |
| 0b000110 | Translation fault, level 2. | |
| 0b000111 | Translation fault, level 3. | |
| 0b001001 | Access flag fault, level 1. | |
| 0b001010 | Access flag fault, level 2. | |
| 0b001011 | Access flag fault, level 3. | |
| 0b001000 | Access flag fault, level 0. | When FEAT_LPA2 is implemented |
| 0b001100 | Permission fault, level 0. | When FEAT_LPA2 is implemented |
| 0b001101 | Permission fault, level 1. | |
| 0b001110 | Permission fault, level 2. | |
| 0b001111 | Permission fault, level 3. | |
| 0b010000 | Synchronous External abort, not on translation table walk or hardware update of translation table. | |
| 0b010001 | Asynchronous External abort. | |
| 0b010010 | Synchronous External abort on translation table walk or hardware update of translation table, level -2. | When FEAT_D128 is implemented |
| 0b010011 | Synchronous External abort on translation table walk or hardware update of translation table, level -1. | When FEAT_LPA2 is implemented |
| 0b010100 | Synchronous External abort on translation table walk or hardware update of translation table, level 0. | |
| 0b010101 | Synchronous External abort on translation table walk or hardware update of translation table, level 1. | |
| 0b010110 | Synchronous External abort on translation table walk or hardware update of translation table, level 2. | |
| 0b010111 | Synchronous External abort on translation table walk or hardware update of translation table, level 3. | |
| 0b011011 | Synchronous parity or ECC error on memory access on translation table walk or hardware update of translation table, level -1. | When FEAT_LPA2 is implemented and FEAT_RAS is not implemented |
| 0b100001 | Alignment fault. | |
| 0b100010 | Granule Protection Fault on translation table walk or hardware update of translation table, level -2. | When FEAT_D128 is implemented and FEAT_RME is implemented |
| 0b100011 | Granule Protection Fault on translation table walk or hardware update of translation table, level -1. | When FEAT_RME is implemented and FEAT_LPA2 is implemented |
| 0b100100 | Granule Protection Fault on translation table walk or hardware update of translation table, level 0. | When FEAT_RME is implemented |
| 0b100101 | Granule Protection Fault on translation table walk or hardware update of translation table, level 1. | When FEAT_RME is implemented |
| 0b100110 | Granule Protection Fault on translation table walk or hardware update of translation table, level 2. | When FEAT_RME is implemented |
| 0b100111 | Granule Protection Fault on translation table walk or hardware update of translation table, level 3. | When FEAT_RME is implemented |
| 0b101000 | Granule Protection Fault, not on translation table walk or hardware update of translation table. | When FEAT_RME is implemented |
| 0b101001 | Address size fault, level -1. | When FEAT_LPA2 is implemented |
| 0b101010 | Translation fault, level -2. | When FEAT_D128 is implemented |
| 0b101011 | Translation fault, level -1. | When FEAT_LPA2 is implemented |
| 0b101100 | Address Size fault, level -2. | When FEAT_D128 is implemented |
| 0b110000 | TLB conflict abort. | |
| 0b110001 | Unsupported atomic hardware update fault. | When FEAT_HAF is implemented |
All other values are reserved.
The reset behavior of this field is:
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RES0 |
Reserved, RES0.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IMPLEMENTATION DEFINED |
IMPLEMENTATION DEFINED.
The PE might ignore a write to TRBSR_EL1 if any of the following apply:
| Component | Offset | Instance |
|---|---|---|
| TRBE | 0x018 | TRBSR_EL1 |
Accessible as follows:
Trace Buffer Trigger Counter Register
Specifies the number of bytes of trace to capture following a Detected Trigger before a Trigger Event.
External register TRBTRG_EL1 bits [63:0] are architecturally mapped to AArch64 System register TRBTRG_EL1[63:0] when FEAT_TRBE_EXT is implemented.
TRBTRG_EL1 is in the Core power domain.
This register is present only when FEAT_TRBE_EXT is implemented. Otherwise, direct accesses to TRBTRG_EL1 are RES0.
TRBTRG_EL1 is a 64-bit register.
| 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 | |||||||||||||||||||||||||||||||
| TRG |
Reserved, RES0.
Trigger count.
Specifies the number of bytes of trace to capture following a Detected Trigger before a Trigger Event.
TRBTRG_EL1 decrements by 1 for every byte of trace written to the trace buffer when all of the following are true:
As a result of the restrictions an implementation might treat some of TRG[M:0] as RES0, where M is defined by TRBIDR_EL1.Align.
The reset behavior of this field is:
The PE might ignore a write to TRBTRG_EL1 if any of the following apply:
| Component | Offset | Instance |
|---|---|---|
| TRBE | 0x020 | TRBTRG_EL1 |
Accessible as follows:
Trace Address Comparator Access Type Register <n>
Defines the type of access for the corresponding TRCACVR<n> Register. This register configures the context type, Exception levels, alignment, masking that is applied by the Address Comparator, and how the Address Comparator behaves when it is one half of an Address Range Comparator.
External register TRCACATR<n> bits [63:0] are architecturally mapped to AArch64 System register TRCACATR<n>[63:0].
This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCACATR<n> are RES0.
TRCACATR<n> is a 64-bit register.
| 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 | |||||||||||||||||||||||||||||||
| RES0 | EXLEVEL_RL_EL2 | EXLEVEL_RL_EL1 | EXLEVEL_RL_EL0 | RES0 | EXLEVEL_NS_EL2 | EXLEVEL_NS_EL1 | EXLEVEL_NS_EL0 | EXLEVEL_S_EL3 | EXLEVEL_S_EL2 | EXLEVEL_S_EL1 | EXLEVEL_S_EL0 | RES0 | CONTEXT | CONTEXTTYPE | RES0 |
Reserved, RES0.
Realm EL2 address comparison control. Controls whether a comparison can occur at EL2 in Realm state.
| EXLEVEL_RL_EL2 | Meaning |
|---|---|
| 0b0 | When TRCACATR<n>.EXLEVEL_NS_EL2 is 0 the Address Comparator performs comparisons in Realm EL2. When TRCACATR<n>.EXLEVEL_NS_EL2 is 1 the Address Comparator does not perform comparisons in Realm EL2. |
| 0b1 | When TRCACATR<n>.EXLEVEL_NS_EL2 is 0 the Address Comparator does not perform comparisons in Realm EL2. When TRCACATR<n>.EXLEVEL_NS_EL2 is 1 the Address Comparator performs comparisons in Realm EL2. |
The reset behavior of this field is:
Reserved, RES0.
Realm EL1 address comparison control. Controls whether a comparison can occur at EL1 in Realm state.
| EXLEVEL_RL_EL1 | Meaning |
|---|---|
| 0b0 | When TRCACATR<n>.EXLEVEL_NS_EL1 is 0 the Address Comparator performs comparisons in Realm EL1. When TRCACATR<n>.EXLEVEL_NS_EL1 is 1 the Address Comparator does not perform comparisons in Realm EL1. |
| 0b1 | When TRCACATR<n>.EXLEVEL_NS_EL1 is 0 the Address Comparator does not perform comparisons in Realm EL1. When TRCACATR<n>.EXLEVEL_NS_EL1 is 1 the Address Comparator performs comparisons in Realm EL1. |
The reset behavior of this field is:
Reserved, RES0.
Realm EL0 address comparison control. Controls whether a comparison can occur at EL0 in Realm state.
| EXLEVEL_RL_EL0 | Meaning |
|---|---|
| 0b0 | When TRCACATR<n>.EXLEVEL_NS_EL0 is 0 the Address Comparator performs comparisons in Realm EL0. When TRCACATR<n>.EXLEVEL_NS_EL0 is 1 the Address Comparator does not perform comparisons in Realm EL0. |
| 0b1 | When TRCACATR<n>.EXLEVEL_NS_EL0 is 0 the Address Comparator does not perform comparisons in Realm EL0. When TRCACATR<n>.EXLEVEL_NS_EL0 is 1 the Address Comparator performs comparisons in Realm EL0. |
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Non-secure EL2 address comparison control. Controls whether a comparison can occur at EL2 in Non-secure state.
| EXLEVEL_NS_EL2 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons in Non-secure EL2. |
| 0b1 | The Address Comparator does not perform comparisons in Non-secure EL2. |
The reset behavior of this field is:
Reserved, RES0.
Non-secure EL1 address comparison control. Controls whether a comparison can occur at EL1 in Non-secure state.
| EXLEVEL_NS_EL1 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons in Non-secure EL1. |
| 0b1 | The Address Comparator does not perform comparisons in Non-secure EL1. |
The reset behavior of this field is:
Reserved, RES0.
Non-secure EL0 address comparison control. Controls whether a comparison can occur at EL0 in Non-secure state.
| EXLEVEL_NS_EL0 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons in Non-secure EL0. |
| 0b1 | The Address Comparator does not perform comparisons in Non-secure EL0. |
The reset behavior of this field is:
Reserved, RES0.
EL3 address comparison control. Controls whether a comparison can occur at EL3.
| EXLEVEL_S_EL3 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons at EL3. |
| 0b1 | The Address Comparator does not perform comparisons at EL3. |
The reset behavior of this field is:
Reserved, RES0.
Secure EL2 address comparison control. Controls whether a comparison can occur at EL2 in Secure state.
| EXLEVEL_S_EL2 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons in Secure EL2. |
| 0b1 | The Address Comparator does not perform comparisons in Secure EL2. |
The reset behavior of this field is:
Reserved, RES0.
Secure EL1 address comparison control. Controls whether a comparison can occur at EL1 in Secure state.
| EXLEVEL_S_EL1 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons in Secure EL1. |
| 0b1 | The Address Comparator does not perform comparisons in Secure EL1. |
The reset behavior of this field is:
Reserved, RES0.
Secure EL0 address comparison control. Controls whether a comparison can occur at EL0 in Secure state.
| EXLEVEL_S_EL0 | Meaning |
|---|---|
| 0b0 | The Address Comparator performs comparisons in Secure EL0. |
| 0b1 | The Address Comparator does not perform comparisons in Secure EL0. |
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Selects a Context Identifier Comparator or Virtual Context Identifier Comparator:
| CONTEXT | Meaning | Applies when |
|---|---|---|
| 0b000 | Comparator 0. | |
| 0b001 | Comparator 1. | When UInt(TRCIDR4.NUMCIDC) > 1 or UInt(TRCIDR4.NUMVMIDC) > 1 |
| 0b010 | Comparator 2. | When UInt(TRCIDR4.NUMCIDC) > 2 or UInt(TRCIDR4.NUMVMIDC) > 2 |
| 0b011 | Comparator 3. | When UInt(TRCIDR4.NUMCIDC) > 3 or UInt(TRCIDR4.NUMVMIDC) > 3 |
| 0b100 | Comparator 4. | When UInt(TRCIDR4.NUMCIDC) > 4 or UInt(TRCIDR4.NUMVMIDC) > 4 |
| 0b101 | Comparator 5. | When UInt(TRCIDR4.NUMCIDC) > 5 or UInt(TRCIDR4.NUMVMIDC) > 5 |
| 0b110 | Comparator 6. | When UInt(TRCIDR4.NUMCIDC) > 6 or UInt(TRCIDR4.NUMVMIDC) > 6 |
| 0b111 | Comparator 7. | When UInt(TRCIDR4.NUMCIDC) > 7 or UInt(TRCIDR4.NUMVMIDC) > 7 |
The width of this field is dependent on the maximum number of Context Identifier Comparators or Virtual Context Identifier Comparators implemented. Unimplemented bits are RES0.
The reset behavior of this field is:
Reserved, RES0.
Controls whether the Address Comparator is dependent on a Context Identifier Comparator, a Virtual Context Identifier Comparator, or both comparisons.
| CONTEXTTYPE | Meaning | Applies when |
|---|---|---|
| 0b00 | The Address Comparator is not dependent on the Context Identifier Comparators or Virtual Context Identifier Comparators. | |
| 0b01 | The Address Comparator is dependent on the Context Identifier Comparator that TRCACATR<n>.CONTEXT specifies. The Address Comparator signals a match only if both the Context Identifier Comparator and the address comparison match. | When TRCIDR4.NUMCIDC != '0000' |
| 0b10 | The Address Comparator is dependent on the Virtual Context Identifier Comparator that TRCACATR<n>.CONTEXT specifies. The Address Comparator signals a match only if both the Virtual Context Identifier Comparator and the address comparison match. | When TRCIDR4.NUMVMIDC != '0000' |
| 0b11 | The Address Comparator is dependent on the Context Identifier Comparator and Virtual Context Identifier Comparator that TRCACATR<n>.CONTEXT specifies. The Address Comparator signals a match only if the Context Identifier Comparator, the Virtual Context Identifier Comparator, and address comparison all match. | When TRCIDR4.NUMCIDC != '0000' and TRCIDR4.NUMVMIDC != '0000' |
If TRCIDR4.NUMCIDC == 0b0000, then bit [2] is RES0.
If TRCIDR4.NUMVMIDC == 0b0000, then bit [3] is RES0.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Must be programmed if any of the following are true:
| Component | Offset | Instance |
|---|---|---|
| ETE | 0x480 + (8 * n) | TRCACATR<n> |
Accessible as follows:
Trace Address Comparator Value Register <n>
Contains the address value.
External register TRCACVR<n> bits [63:0] are architecturally mapped to AArch64 System register TRCACVR<n>[63:0].
This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCACVR<n> are RES0.
TRCACVR<n> is a 64-bit register.
| 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 |
| ADDRESS | |||||||||||||||||||||||||||||||
| ADDRESS |
Address Value.
The Address Comparators can support implementations that use multiple address widths. When the trace unit compares the ADDRESS field with an address that has a width less than this field, then the address must be zero-extended to the ADDRESS field width. The trace unit then compares all implemented bits. For example, in a system that supports both 32-bit and 64-bit addresses, when the PE is in AArch32 state the comparator must zero-extend the 32-bit address and compare against the full 64 bits that are stored in TRCACVR<n>.ADDRESS. This requires that the trace analyzer always programs all implemented bits of TRCACVR<n>.ADDRESS.
The result of writing a value other than all zeros or all ones to ADDRESS at bits[63:P] is an UNKNOWN value, where P is defined as:
The reset behavior of this field is:
Must be programmed if any of the following are true:
| Component | Offset | Instance |
|---|---|---|
| ETE | 0x400 + (8 * n) | TRCACVR<n> |
Accessible as follows: