This forum was built by humans, for humans. AI was used exclusively for security auditing. The forum officially launched on November 24, 2026. Read more

romdump.net
romdump.net › Forum › External debug and trace register pages: part 17 of 22 › Edit history

Edit history

Post #96 by admin in “External debug and trace register pages: part 17 of 22”, 2 versions.

Newest first. Every version is rendered from its source as the site renders posts today, followed by the changes to the source since the version before it. Edits by anyone other than the author are shown as made by “a moderator”. A post keeps its original and up to 49 edits.

Revision 1

current by admin · 2d ago #1

Reason: replace numeric range dashes in intro

Archived Arm source pages for the External debug and trace register pages. Part 17 of 22. This part covers TRBMAR_EL1 through TRCACVR, n = 0 to 15.

TRBMAR_EL1

Trace Buffer Memory Attribute Register

Controls Trace Buffer Unit accesses to memory.

Configuration

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.

Attributes

TRBMAR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0PASSHAttr

Bits [63:12]:

Reserved, RES0.

PAS, bits [11:10]:

Physical address specifier. Defines the PAS attribute for memory addressed by the buffer in External mode.

PASMeaningApplies when
0b00Secure.When FEAT_Secure is implemented
0b01Non-secure.
0b10Root.When FEAT_RME is implemented
0b11Realm.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:

  • ExternalInvasiveDebugEnabled() == FALSE.
  • TRBMAR_EL1.PAS is 0b00, and either ExternalSecureInvasiveDebugEnabled() == FALSE or Secure state is not implemented.
  • TRBMAR_EL1.PAS is 0b10, and either ExternalRootInvasiveDebugEnabled() == FALSE or FEAT_RME is not implemented.
  • TRBMAR_EL1.PAS is 0b11, and either ExternalRealmInvasiveDebugEnabled() == FALSE or FEAT_RME is not implemented. This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

SH, bits [9:8]:

Trace buffer stage 1 shareability domain. Defines the shareability domain for Normal memory used by the trace buffer.

SHMeaning
0b00Non-shareable.
0b10Outer Shareable.
0b11Inner 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:

  • Any Device memory type.
  • Normal memory, Inner Non-cacheable, Outer Non-cacheable. All Device and Normal Inner Non-cacheable Outer Non-cacheable memory regions are always treated as Outer Shareable.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Attr, bits [7:0]:

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:

AttrMeaning
'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 != 0000Normal 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 != 1111UNPREDICTABLE.

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 != 00Normal memory, Outer Write-Through Transient.
'0100'Normal memory, Outer Non-cacheable.
'01RW'where RW != 00Normal 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 != 00Normal memory, Inner Write-Through Transient.
'0100'Normal memory, Inner Non-cacheable.
'01RW'where RW != 00Normal 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBMAR_EL1

The PE might ignore a write to TRBMAR_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBMAR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x028TRBMAR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBMPAM_EL1

Trace Buffer MPAM Configuration Register

Defines the PARTID, PMG, and MPAM_SP values used by the trace buffer unit in external mode.

Configuration

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.

Attributes

TRBMPAM_EL1 is a 64-bit register.

Field descriptions

MPAMv2 variant when FEAT_MPAMv2 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0PMG
RES0ENRES0PARTID

Bits [63:48]:

Reserved, RES0.

PMG, bits [47:32] (MPAMv2 variant):

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [31:27]:

Reserved, RES0.

EN, bit [26]:

Enable. Enables use of non-Default MPAM values.

ENMeaning
0b0Use Default physical PARTID and Default physical PMG values.
0b1Use TRBMPAM_EL1.{PARTID, PMG}.

This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to '0'.

Bits [25:16]:

Reserved, RES0.

PARTID, bits [15:0]:

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

MPAM variant otherwise:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0ENMPAM_SPPMGPARTID

Bits [63:27]:

Reserved, RES0.

EN, bit [26]:

Enable. Enables use of non-Default MPAM values.

ENMeaning
0b0Use Default physical PARTID and Default physical PMG values, and the PARTID space corresponding to the trace physical address space defined by TRBMAR_EL1.PAS.
0b1Use TRBMPAM_EL1.{PARTID, PMG, MPAM_SP}.

This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to '0'.

MPAM_SP, bits [25:24]:

Partition Identifier space. Selects the PARTID space.

MPAM_SPMeaningApplies when
0b00PARTID is in the Secure PARTID space.When FEAT_Secure is implemented
0b01PARTID is in the Non-secure PARTID space.
0b10PARTID is in the Root PARTID space.When FEAT_RME is implemented
0b11PARTID 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:

  • ExternalInvasiveDebugEnabled() == FALSE.
  • Secure state is implemented, ExternalSecureInvasiveDebugEnabled() == FALSE and TRBMPAM_EL1.MPAM_SP is 0b00.
  • FEAT_RME is implemented, ExternalRootInvasiveDebugEnabled() == FALSE, and TRBMPAM_EL1.MPAM_SP is 0b10.
  • FEAT_RME is implemented, ExternalRealmInvasiveDebugEnabled() == FALSE, and TRBMPAM_EL1.MPAM_SP is 0b11. This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

PMG, bits [23:16] (MPAM variant):

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

PARTID, bits [15:0]:

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBMPAM_EL1

The PE might ignore a write to TRBMPAM_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBMPAM_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x040TRBMPAM_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBPTR_EL1

Trace Buffer Write Pointer Register

Defines the current write pointer for the trace buffer.

Configuration

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.

Attributes

TRBPTR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
PTR
PTR

PTR, bits [63:0]:

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBPTR_EL1

The PE might ignore a write to TRBPTR_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBPTR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x008TRBPTR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBSR_EL1

Trace Buffer Status/syndrome Register

Provides syndrome information to software for a trace buffer management event.

Configuration

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.

Attributes

TRBSR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0MSS2
ECRES0DATIRQTRGWRAPRES0EASRES0MSS

Bits [63:56]:

Reserved, RES0.

MSS2, bits [55:32]:

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.

MSS2 encoding for other trace buffer management events

23222120191817161514131211109876543210
RES0

Bits [23:0]:

Reserved, RES0.

MSS2 encoding for stage 1 or stage 2 Data Aborts on write to trace buffer

23222120191817161514131211109876543210
RES0HDBSSFRES0TopLevelAssuredOnlyOverlayDirtyBitRES0

Bits [23:12]:

Reserved, RES0.

HDBSSF, bit [11] when FEAT_HDBSS is implemented:

Host Dirty state Status Structure fault.

Indicates whether the fault was caused by HDBSS.

HDBSSFMeaning
0b0Fault was not caused by HDBSS.
0b1Fault was caused by HDBSS.

For any other fault, this field is RES0.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bits [10:9]:

Reserved, RES0.

TopLevel, bit [8] when FEAT_THE is implemented:

TopLevel. Indicates if the fault was due to TopLevel.

TopLevelMeaning
0b0Fault is not due to TopLevel.
0b1Fault is due to TopLevel.

Otherwise:

Reserved, RES0.

AssuredOnly, bit [7] when FEAT_THE is implemented, TRBSR_EL1.EC == '100101', and GetTRBSR_EL1_FSC() IN {'0011xx'}:

AssuredOnly flag. If a memory access generates a stage 2 Data Abort, then this field holds information about the fault.

AssuredOnlyMeaning
0b0Data Abort is not due to AssuredOnly.
0b1Data Abort is due to AssuredOnly.

Otherwise:

Reserved, RES0.

Overlay, bit [6] when (FEAT_S1POE is implemented or FEAT_S2POE is implemented) and GetTRBSR_EL1_FSC() IN {'0011xx'}:

Overlay flag. If a memory access generates a Data Abort for a Permission fault, then this field holds information about the fault.

OverlayMeaning
0b0Data Abort is not due to Overlay Permissions.
0b1Data Abort is due to Overlay Permissions.

Otherwise:

Reserved, RES0.

DirtyBit, bit [5] when (FEAT_S1PIE is implemented or FEAT_S2PIE is implemented) and GetTRBSR_EL1_FSC() IN {'0011xx'}:

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.

DirtyBitMeaning
0b0Permission Fault is not due to dirty state.
0b1Permission Fault is due to dirty state.

Otherwise:

Reserved, RES0.

Bits [4:0]:

Reserved, RES0.

MSS2 encoding for Granule Protection Check faults on write to trace buffer

23222120191817161514131211109876543210
RES0

Bits [23:0]:

Reserved, RES0.

MSS2 encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason

23222120191817161514131211109876543210
IMPLEMENTATION DEFINED

IMPLEMENTATION DEFINED, bits [23:0]:

IMPLEMENTATION DEFINED.

EC, bits [31:26]:

Event class. Top-level description of the cause of the trace buffer management event.

ECMeaningMSSMSS2Applies when
0b000000Other 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 eventsMSS2 encoding for other trace buffer management events
0b011110Granule 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 bufferMSS2 encoding for Granule Protection Check faults on write to trace bufferWhen FEAT_RME is implemented
0b011111Trace buffer management event for an IMPLEMENTATION DEFINED reason.MSS encoding for trace buffer management event for an IMPLEMENTATION DEFINED reasonMSS2 encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason
0b100100Stage 1 Data Abort on write to trace buffer.MSS encoding for stage 1 or stage 2 Data Aborts on write to trace bufferMSS2 encoding for stage 1 or stage 2 Data Aborts on write to trace buffer
0b100101Stage 2 Data Abort on write to trace buffer.MSS encoding for stage 1 or stage 2 Data Aborts on write to trace bufferMSS2 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [25:24]:

Reserved, RES0.

DAT, bit [23] when FEAT_TRBE_EXT is implemented:

Data. Indicates when the Trace Buffer Unit has trace data that has not yet been written to memory.

DATMeaning
0b0Internal buffers are empty. All Trace operations Accepted by the Trace Buffer Unit will Complete in finite time.
0b1Internal 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

IRQ, bit [22]:

Maintenance status. Indicates that a trace buffer management event has been recorded.

IRQMeaning
0b0No trace buffer management event for EL1 has been recorded.
0b1A 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

TRG, bit [21]:

Triggered.

TRGMeaning
0b0No Detected Trigger has been observed since this field was last cleared to zero.
0b1A Detected Trigger has been observed since this field was last cleared to zero.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

WRAP, bit [20]:

Wrapped.

WRAPMeaning
0b0The current write pointer has not wrapped since this field was last cleared to zero.
0b1The 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bit [19]:

Reserved, RES0.

EA, bit [18] when the PE sets this bit as the result of an External abort:

External Abort.

EAMeaning
0b0An External abort has not been asserted.
0b1An 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

S, bit [17]:

Stopped.

SMeaning
0b0Collection has not been stopped.
0b1Collection is stopped.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bit [16]:

Reserved, RES0.

MSS, bits [15:0]:

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.

MSS encoding for other trace buffer management events

1514131211109876543210
RES0BSC

Bits [15:6]:

Reserved, RES0.

BSC, bits [5:0]:

Trace buffer status code

BSCMeaning
0b000000Collection not stopped, or access not allowed.
0b000001Trace buffer filled. Collection stopped because the current write pointer wrapped to the base pointer and the trace buffer mode is Fill mode.
0b000010Trigger Event. Collection stopped because of a Trigger Event. See TRBTRG_EL1 for more information.
0b000011Manual Stop. Collection stopped because of a Manual Stop event. See TRBCR.ManStop for more information.
0b000100Buffer size. The requested trace buffer size was too large.

All other values are reserved.

MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer

1514131211109876543210
RES0S1PTWRES0FSC

Bits [15:8]:

Reserved, RES0.

S1PTW, bit [7] when FEAT_TRBE_EXC is implemented:

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.

S1PTWMeaning
0b0Fault not on a stage 2 translation for a stage 1 translation walk.
0b1Fault 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.

Otherwise:

Reserved, RES0.

Bit [6]:

Reserved, RES0.

FSC, bits [5:0]:

Fault status code

FSCMeaningApplies when
0b000000Address size fault, level 0 of translation or translation table base register.
0b000001Address size fault, level 1.
0b000010Address size fault, level 2.
0b000011Address size fault, level 3.
0b000100Translation fault, level 0.
0b000101Translation fault, level 1.
0b000110Translation fault, level 2.
0b000111Translation fault, level 3.
0b001001Access flag fault, level 1.
0b001010Access flag fault, level 2.
0b001011Access flag fault, level 3.
0b001000Access flag fault, level 0.When FEAT_LPA2 is implemented
0b001100Permission fault, level 0.When FEAT_LPA2 is implemented
0b001101Permission fault, level 1.
0b001110Permission fault, level 2.
0b001111Permission fault, level 3.
0b010000Synchronous External abort, not on translation table walk or hardware update of translation table.
0b010001Asynchronous External abort.
0b010010Synchronous External abort on translation table walk or hardware update of translation table, level -2.When FEAT_D128 is implemented
0b010011Synchronous External abort on translation table walk or hardware update of translation table, level -1.When FEAT_LPA2 is implemented
0b010100Synchronous External abort on translation table walk or hardware update of translation table, level 0.
0b010101Synchronous External abort on translation table walk or hardware update of translation table, level 1.
0b010110Synchronous External abort on translation table walk or hardware update of translation table, level 2.
0b010111Synchronous External abort on translation table walk or hardware update of translation table, level 3.
0b011011Synchronous 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
0b100001Alignment fault.
0b100010Granule Protection Fault on translation table walk or hardware update of translation table, level -2.When FEAT_D128 is implemented and FEAT_RME is implemented
0b100011Granule Protection Fault on translation table walk or hardware update of translation table, level -1.When FEAT_RME is implemented and FEAT_LPA2 is implemented
0b100100Granule Protection Fault on translation table walk or hardware update of translation table, level 0.When FEAT_RME is implemented
0b100101Granule Protection Fault on translation table walk or hardware update of translation table, level 1.When FEAT_RME is implemented
0b100110Granule Protection Fault on translation table walk or hardware update of translation table, level 2.When FEAT_RME is implemented
0b100111Granule Protection Fault on translation table walk or hardware update of translation table, level 3.When FEAT_RME is implemented
0b101000Granule Protection Fault, not on translation table walk or hardware update of translation table.When FEAT_RME is implemented
0b101001Address size fault, level -1.When FEAT_LPA2 is implemented
0b101010Translation fault, level -2.When FEAT_D128 is implemented
0b101011Translation fault, level -1.When FEAT_LPA2 is implemented
0b101100Address Size fault, level -2.When FEAT_D128 is implemented
0b110000TLB conflict abort.
0b110001Unsupported atomic hardware update fault.When FEAT_HAF is implemented

All other values are reserved.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

MSS encoding for Granule Protection Check faults on write to trace buffer

1514131211109876543210
RES0

Bits [15:0]:

Reserved, RES0.

MSS encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason

1514131211109876543210
IMPLEMENTATION DEFINED

IMPLEMENTATION DEFINED, bits [15:0]:

IMPLEMENTATION DEFINED.

Accessing TRBSR_EL1

The PE might ignore a write to TRBSR_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBSR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x018TRBSR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBTRG_EL1

Trace Buffer Trigger Counter Register

Specifies the number of bytes of trace to capture following a Detected Trigger before a Trigger Event.

Configuration

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.

Attributes

TRBTRG_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
TRG

Bits [63:32]:

Reserved, RES0.

TRG, bits [31:0]:

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:

  • TRBTRG_EL1 is nonzero.
  • TRBSR_EL1.TRG is 1. The architecture places restrictions on the values that software can write to the counter.

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBTRG_EL1

The PE might ignore a write to TRBTRG_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBTRG_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x020TRBTRG_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRCACATR<n>, n = 0, 15

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.

Configuration

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.

Attributes

TRCACATR<n> is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0EXLEVEL_RL_EL2EXLEVEL_RL_EL1EXLEVEL_RL_EL0RES0EXLEVEL_NS_EL2EXLEVEL_NS_EL1EXLEVEL_NS_EL0EXLEVEL_S_EL3EXLEVEL_S_EL2EXLEVEL_S_EL1EXLEVEL_S_EL0RES0CONTEXTCONTEXTTYPERES0

Bits [63:19]:

Reserved, RES0.

EXLEVEL_RL_EL2, bit [18] when FEAT_RME is implemented:

Realm EL2 address comparison control. Controls whether a comparison can occur at EL2 in Realm state.

EXLEVEL_RL_EL2Meaning
0b0When 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.
0b1When 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_RL_EL1, bit [17] when FEAT_RME is implemented:

Realm EL1 address comparison control. Controls whether a comparison can occur at EL1 in Realm state.

EXLEVEL_RL_EL1Meaning
0b0When 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.
0b1When 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_RL_EL0, bit [16] when FEAT_RME is implemented:

Realm EL0 address comparison control. Controls whether a comparison can occur at EL0 in Realm state.

EXLEVEL_RL_EL0Meaning
0b0When 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.
0b1When 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bit [15]:

Reserved, RES0.

EXLEVEL_NS_EL2, bit [14] when Non-secure EL2 is implemented:

Non-secure EL2 address comparison control. Controls whether a comparison can occur at EL2 in Non-secure state.

EXLEVEL_NS_EL2Meaning
0b0The Address Comparator performs comparisons in Non-secure EL2.
0b1The Address Comparator does not perform comparisons in Non-secure EL2.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_NS_EL1, bit [13] when Non-secure EL1 is implemented:

Non-secure EL1 address comparison control. Controls whether a comparison can occur at EL1 in Non-secure state.

EXLEVEL_NS_EL1Meaning
0b0The Address Comparator performs comparisons in Non-secure EL1.
0b1The Address Comparator does not perform comparisons in Non-secure EL1.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_NS_EL0, bit [12] when Non-secure EL0 is implemented:

Non-secure EL0 address comparison control. Controls whether a comparison can occur at EL0 in Non-secure state.

EXLEVEL_NS_EL0Meaning
0b0The Address Comparator performs comparisons in Non-secure EL0.
0b1The Address Comparator does not perform comparisons in Non-secure EL0.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL3, bit [11] when EL3 is implemented:

EL3 address comparison control. Controls whether a comparison can occur at EL3.

EXLEVEL_S_EL3Meaning
0b0The Address Comparator performs comparisons at EL3.
0b1The Address Comparator does not perform comparisons at EL3.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL2, bit [10] when Secure EL2 is implemented:

Secure EL2 address comparison control. Controls whether a comparison can occur at EL2 in Secure state.

EXLEVEL_S_EL2Meaning
0b0The Address Comparator performs comparisons in Secure EL2.
0b1The Address Comparator does not perform comparisons in Secure EL2.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL1, bit [9] when Secure EL1 is implemented:

Secure EL1 address comparison control. Controls whether a comparison can occur at EL1 in Secure state.

EXLEVEL_S_EL1Meaning
0b0The Address Comparator performs comparisons in Secure EL1.
0b1The Address Comparator does not perform comparisons in Secure EL1.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL0, bit [8] when Secure EL0 is implemented:

Secure EL0 address comparison control. Controls whether a comparison can occur at EL0 in Secure state.

EXLEVEL_S_EL0Meaning
0b0The Address Comparator performs comparisons in Secure EL0.
0b1The Address Comparator does not perform comparisons in Secure EL0.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bit [7]:

Reserved, RES0.

CONTEXT, bits [6:4] when TRCIDR4.NUMCIDC != '0000' or TRCIDR4.NUMVMIDC != '0000':

Selects a Context Identifier Comparator or Virtual Context Identifier Comparator:

CONTEXTMeaningApplies when
0b000Comparator 0.
0b001Comparator 1.When UInt(TRCIDR4.NUMCIDC) > 1 or UInt(TRCIDR4.NUMVMIDC) > 1
0b010Comparator 2.When UInt(TRCIDR4.NUMCIDC) > 2 or UInt(TRCIDR4.NUMVMIDC) > 2
0b011Comparator 3.When UInt(TRCIDR4.NUMCIDC) > 3 or UInt(TRCIDR4.NUMVMIDC) > 3
0b100Comparator 4.When UInt(TRCIDR4.NUMCIDC) > 4 or UInt(TRCIDR4.NUMVMIDC) > 4
0b101Comparator 5.When UInt(TRCIDR4.NUMCIDC) > 5 or UInt(TRCIDR4.NUMVMIDC) > 5
0b110Comparator 6.When UInt(TRCIDR4.NUMCIDC) > 6 or UInt(TRCIDR4.NUMVMIDC) > 6
0b111Comparator 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

CONTEXTTYPE, bits [3:2] when TRCIDR4.NUMCIDC != '0000' or TRCIDR4.NUMVMIDC != '0000':

Controls whether the Address Comparator is dependent on a Context Identifier Comparator, a Virtual Context Identifier Comparator, or both comparisons.

CONTEXTTYPEMeaningApplies when
0b00The Address Comparator is not dependent on the Context Identifier Comparators or Virtual Context Identifier Comparators.
0b01The 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'
0b10The 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'
0b11The 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bits [1:0]:

Reserved, RES0.

Accessing TRCACATR<n>

Must be programmed if any of the following are true:

TRCACATR<n> can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x480 + (8 * n)TRCACATR<n>

Accessible as follows:

  • When OSLockStatus(), or !AllowExternalTraceAccess(addrdesc), or !IsTraceCorePowered(), accesses to this register generate an error response.
  • When n >= NUM_TRACE_ADDRESS_COMPARATOR_PAIRS * 2, accesses to this register are RES0.
  • Otherwise, accesses to this register are RW.

TRCACVR<n>, n = 0, 15

Trace Address Comparator Value Register <n>

Contains the address value.

Configuration

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.

Attributes

TRCACVR<n> is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
ADDRESS
ADDRESS

ADDRESS, bits [63:0]:

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:

  • 56, when FEAT_LVA3 is implemented.
  • 52, when FEAT_LVA is implemented.
  • 48, otherwise. The result of writing a value of all zeros or all ones to ADDRESS at bits[63:P] is the written value, and a read of the register returns the written value.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Accessing TRCACVR<n>

Must be programmed if any of the following are true:

TRCACVR<n> can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x400 + (8 * n)TRCACVR<n>

Accessible as follows:

  • When OSLockStatus(), or !AllowExternalTraceAccess(addrdesc), or !IsTraceCorePowered(), accesses to this register generate an error response.
  • When n >= NUM_TRACE_ADDRESS_COMPARATOR_PAIRS * 2, accesses to this register are RES0.
  • Otherwise, accesses to this register are RW.

Changes from the previous version
<p>Archived Arm source pages for the External debug and trace register pages. Part 17 of 22. This part covers TRBMAR_EL1 through TRCACVR<n>, n = 0 - 15.</p><p>Archived Arm source pages for the External debug and trace register pages. Part 17 of 22. This part covers TRBMAR_EL1 through TRCACVR<n>, n = 0 to 15.</p><h1>TRBMAR_EL1</h1><p>Trace Buffer Memory Attribute Register</p><p>Controls Trace Buffer Unit accesses to memory.</p>… 884 unchanged lines

Original

by admin · 2d ago #0

Archived Arm source pages for the External debug and trace register pages. Part 17 of 22. This part covers TRBMAR_EL1 through TRCACVR, n = 0 - 15.

TRBMAR_EL1

Trace Buffer Memory Attribute Register

Controls Trace Buffer Unit accesses to memory.

Configuration

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.

Attributes

TRBMAR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0PASSHAttr

Bits [63:12]:

Reserved, RES0.

PAS, bits [11:10]:

Physical address specifier. Defines the PAS attribute for memory addressed by the buffer in External mode.

PASMeaningApplies when
0b00Secure.When FEAT_Secure is implemented
0b01Non-secure.
0b10Root.When FEAT_RME is implemented
0b11Realm.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:

  • ExternalInvasiveDebugEnabled() == FALSE.
  • TRBMAR_EL1.PAS is 0b00, and either ExternalSecureInvasiveDebugEnabled() == FALSE or Secure state is not implemented.
  • TRBMAR_EL1.PAS is 0b10, and either ExternalRootInvasiveDebugEnabled() == FALSE or FEAT_RME is not implemented.
  • TRBMAR_EL1.PAS is 0b11, and either ExternalRealmInvasiveDebugEnabled() == FALSE or FEAT_RME is not implemented. This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

SH, bits [9:8]:

Trace buffer stage 1 shareability domain. Defines the shareability domain for Normal memory used by the trace buffer.

SHMeaning
0b00Non-shareable.
0b10Outer Shareable.
0b11Inner 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:

  • Any Device memory type.
  • Normal memory, Inner Non-cacheable, Outer Non-cacheable. All Device and Normal Inner Non-cacheable Outer Non-cacheable memory regions are always treated as Outer Shareable.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Attr, bits [7:0]:

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:

AttrMeaning
'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 != 0000Normal 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 != 1111UNPREDICTABLE.

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 != 00Normal memory, Outer Write-Through Transient.
'0100'Normal memory, Outer Non-cacheable.
'01RW'where RW != 00Normal 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 != 00Normal memory, Inner Write-Through Transient.
'0100'Normal memory, Inner Non-cacheable.
'01RW'where RW != 00Normal 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBMAR_EL1

The PE might ignore a write to TRBMAR_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBMAR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x028TRBMAR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBMPAM_EL1

Trace Buffer MPAM Configuration Register

Defines the PARTID, PMG, and MPAM_SP values used by the trace buffer unit in external mode.

Configuration

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.

Attributes

TRBMPAM_EL1 is a 64-bit register.

Field descriptions

MPAMv2 variant when FEAT_MPAMv2 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0PMG
RES0ENRES0PARTID

Bits [63:48]:

Reserved, RES0.

PMG, bits [47:32] (MPAMv2 variant):

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [31:27]:

Reserved, RES0.

EN, bit [26]:

Enable. Enables use of non-Default MPAM values.

ENMeaning
0b0Use Default physical PARTID and Default physical PMG values.
0b1Use TRBMPAM_EL1.{PARTID, PMG}.

This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to '0'.

Bits [25:16]:

Reserved, RES0.

PARTID, bits [15:0]:

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

MPAM variant otherwise:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0ENMPAM_SPPMGPARTID

Bits [63:27]:

Reserved, RES0.

EN, bit [26]:

Enable. Enables use of non-Default MPAM values.

ENMeaning
0b0Use Default physical PARTID and Default physical PMG values, and the PARTID space corresponding to the trace physical address space defined by TRBMAR_EL1.PAS.
0b1Use TRBMPAM_EL1.{PARTID, PMG, MPAM_SP}.

This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to '0'.

MPAM_SP, bits [25:24]:

Partition Identifier space. Selects the PARTID space.

MPAM_SPMeaningApplies when
0b00PARTID is in the Secure PARTID space.When FEAT_Secure is implemented
0b01PARTID is in the Non-secure PARTID space.
0b10PARTID is in the Root PARTID space.When FEAT_RME is implemented
0b11PARTID 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:

  • ExternalInvasiveDebugEnabled() == FALSE.
  • Secure state is implemented, ExternalSecureInvasiveDebugEnabled() == FALSE and TRBMPAM_EL1.MPAM_SP is 0b00.
  • FEAT_RME is implemented, ExternalRootInvasiveDebugEnabled() == FALSE, and TRBMPAM_EL1.MPAM_SP is 0b10.
  • FEAT_RME is implemented, ExternalRealmInvasiveDebugEnabled() == FALSE, and TRBMPAM_EL1.MPAM_SP is 0b11. This field is ignored by the PE when SelfHostedTraceEnabled() == TRUE.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

PMG, bits [23:16] (MPAM variant):

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

PARTID, bits [15:0]:

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBMPAM_EL1

The PE might ignore a write to TRBMPAM_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBMPAM_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x040TRBMPAM_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBPTR_EL1

Trace Buffer Write Pointer Register

Defines the current write pointer for the trace buffer.

Configuration

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.

Attributes

TRBPTR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
PTR
PTR

PTR, bits [63:0]:

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBPTR_EL1

The PE might ignore a write to TRBPTR_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBPTR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x008TRBPTR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBSR_EL1

Trace Buffer Status/syndrome Register

Provides syndrome information to software for a trace buffer management event.

Configuration

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.

Attributes

TRBSR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0MSS2
ECRES0DATIRQTRGWRAPRES0EASRES0MSS

Bits [63:56]:

Reserved, RES0.

MSS2, bits [55:32]:

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.

MSS2 encoding for other trace buffer management events

23222120191817161514131211109876543210
RES0

Bits [23:0]:

Reserved, RES0.

MSS2 encoding for stage 1 or stage 2 Data Aborts on write to trace buffer

23222120191817161514131211109876543210
RES0HDBSSFRES0TopLevelAssuredOnlyOverlayDirtyBitRES0

Bits [23:12]:

Reserved, RES0.

HDBSSF, bit [11] when FEAT_HDBSS is implemented:

Host Dirty state Status Structure fault.

Indicates whether the fault was caused by HDBSS.

HDBSSFMeaning
0b0Fault was not caused by HDBSS.
0b1Fault was caused by HDBSS.

For any other fault, this field is RES0.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bits [10:9]:

Reserved, RES0.

TopLevel, bit [8] when FEAT_THE is implemented:

TopLevel. Indicates if the fault was due to TopLevel.

TopLevelMeaning
0b0Fault is not due to TopLevel.
0b1Fault is due to TopLevel.

Otherwise:

Reserved, RES0.

AssuredOnly, bit [7] when FEAT_THE is implemented, TRBSR_EL1.EC == '100101', and GetTRBSR_EL1_FSC() IN {'0011xx'}:

AssuredOnly flag. If a memory access generates a stage 2 Data Abort, then this field holds information about the fault.

AssuredOnlyMeaning
0b0Data Abort is not due to AssuredOnly.
0b1Data Abort is due to AssuredOnly.

Otherwise:

Reserved, RES0.

Overlay, bit [6] when (FEAT_S1POE is implemented or FEAT_S2POE is implemented) and GetTRBSR_EL1_FSC() IN {'0011xx'}:

Overlay flag. If a memory access generates a Data Abort for a Permission fault, then this field holds information about the fault.

OverlayMeaning
0b0Data Abort is not due to Overlay Permissions.
0b1Data Abort is due to Overlay Permissions.

Otherwise:

Reserved, RES0.

DirtyBit, bit [5] when (FEAT_S1PIE is implemented or FEAT_S2PIE is implemented) and GetTRBSR_EL1_FSC() IN {'0011xx'}:

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.

DirtyBitMeaning
0b0Permission Fault is not due to dirty state.
0b1Permission Fault is due to dirty state.

Otherwise:

Reserved, RES0.

Bits [4:0]:

Reserved, RES0.

MSS2 encoding for Granule Protection Check faults on write to trace buffer

23222120191817161514131211109876543210
RES0

Bits [23:0]:

Reserved, RES0.

MSS2 encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason

23222120191817161514131211109876543210
IMPLEMENTATION DEFINED

IMPLEMENTATION DEFINED, bits [23:0]:

IMPLEMENTATION DEFINED.

EC, bits [31:26]:

Event class. Top-level description of the cause of the trace buffer management event.

ECMeaningMSSMSS2Applies when
0b000000Other 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 eventsMSS2 encoding for other trace buffer management events
0b011110Granule 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 bufferMSS2 encoding for Granule Protection Check faults on write to trace bufferWhen FEAT_RME is implemented
0b011111Trace buffer management event for an IMPLEMENTATION DEFINED reason.MSS encoding for trace buffer management event for an IMPLEMENTATION DEFINED reasonMSS2 encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason
0b100100Stage 1 Data Abort on write to trace buffer.MSS encoding for stage 1 or stage 2 Data Aborts on write to trace bufferMSS2 encoding for stage 1 or stage 2 Data Aborts on write to trace buffer
0b100101Stage 2 Data Abort on write to trace buffer.MSS encoding for stage 1 or stage 2 Data Aborts on write to trace bufferMSS2 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [25:24]:

Reserved, RES0.

DAT, bit [23] when FEAT_TRBE_EXT is implemented:

Data. Indicates when the Trace Buffer Unit has trace data that has not yet been written to memory.

DATMeaning
0b0Internal buffers are empty. All Trace operations Accepted by the Trace Buffer Unit will Complete in finite time.
0b1Internal 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

IRQ, bit [22]:

Maintenance status. Indicates that a trace buffer management event has been recorded.

IRQMeaning
0b0No trace buffer management event for EL1 has been recorded.
0b1A 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

TRG, bit [21]:

Triggered.

TRGMeaning
0b0No Detected Trigger has been observed since this field was last cleared to zero.
0b1A Detected Trigger has been observed since this field was last cleared to zero.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

WRAP, bit [20]:

Wrapped.

WRAPMeaning
0b0The current write pointer has not wrapped since this field was last cleared to zero.
0b1The 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bit [19]:

Reserved, RES0.

EA, bit [18] when the PE sets this bit as the result of an External abort:

External Abort.

EAMeaning
0b0An External abort has not been asserted.
0b1An 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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

S, bit [17]:

Stopped.

SMeaning
0b0Collection has not been stopped.
0b1Collection is stopped.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bit [16]:

Reserved, RES0.

MSS, bits [15:0]:

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.

MSS encoding for other trace buffer management events

1514131211109876543210
RES0BSC

Bits [15:6]:

Reserved, RES0.

BSC, bits [5:0]:

Trace buffer status code

BSCMeaning
0b000000Collection not stopped, or access not allowed.
0b000001Trace buffer filled. Collection stopped because the current write pointer wrapped to the base pointer and the trace buffer mode is Fill mode.
0b000010Trigger Event. Collection stopped because of a Trigger Event. See TRBTRG_EL1 for more information.
0b000011Manual Stop. Collection stopped because of a Manual Stop event. See TRBCR.ManStop for more information.
0b000100Buffer size. The requested trace buffer size was too large.

All other values are reserved.

MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer

1514131211109876543210
RES0S1PTWRES0FSC

Bits [15:8]:

Reserved, RES0.

S1PTW, bit [7] when FEAT_TRBE_EXC is implemented:

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.

S1PTWMeaning
0b0Fault not on a stage 2 translation for a stage 1 translation walk.
0b1Fault 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.

Otherwise:

Reserved, RES0.

Bit [6]:

Reserved, RES0.

FSC, bits [5:0]:

Fault status code

FSCMeaningApplies when
0b000000Address size fault, level 0 of translation or translation table base register.
0b000001Address size fault, level 1.
0b000010Address size fault, level 2.
0b000011Address size fault, level 3.
0b000100Translation fault, level 0.
0b000101Translation fault, level 1.
0b000110Translation fault, level 2.
0b000111Translation fault, level 3.
0b001001Access flag fault, level 1.
0b001010Access flag fault, level 2.
0b001011Access flag fault, level 3.
0b001000Access flag fault, level 0.When FEAT_LPA2 is implemented
0b001100Permission fault, level 0.When FEAT_LPA2 is implemented
0b001101Permission fault, level 1.
0b001110Permission fault, level 2.
0b001111Permission fault, level 3.
0b010000Synchronous External abort, not on translation table walk or hardware update of translation table.
0b010001Asynchronous External abort.
0b010010Synchronous External abort on translation table walk or hardware update of translation table, level -2.When FEAT_D128 is implemented
0b010011Synchronous External abort on translation table walk or hardware update of translation table, level -1.When FEAT_LPA2 is implemented
0b010100Synchronous External abort on translation table walk or hardware update of translation table, level 0.
0b010101Synchronous External abort on translation table walk or hardware update of translation table, level 1.
0b010110Synchronous External abort on translation table walk or hardware update of translation table, level 2.
0b010111Synchronous External abort on translation table walk or hardware update of translation table, level 3.
0b011011Synchronous 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
0b100001Alignment fault.
0b100010Granule Protection Fault on translation table walk or hardware update of translation table, level -2.When FEAT_D128 is implemented and FEAT_RME is implemented
0b100011Granule Protection Fault on translation table walk or hardware update of translation table, level -1.When FEAT_RME is implemented and FEAT_LPA2 is implemented
0b100100Granule Protection Fault on translation table walk or hardware update of translation table, level 0.When FEAT_RME is implemented
0b100101Granule Protection Fault on translation table walk or hardware update of translation table, level 1.When FEAT_RME is implemented
0b100110Granule Protection Fault on translation table walk or hardware update of translation table, level 2.When FEAT_RME is implemented
0b100111Granule Protection Fault on translation table walk or hardware update of translation table, level 3.When FEAT_RME is implemented
0b101000Granule Protection Fault, not on translation table walk or hardware update of translation table.When FEAT_RME is implemented
0b101001Address size fault, level -1.When FEAT_LPA2 is implemented
0b101010Translation fault, level -2.When FEAT_D128 is implemented
0b101011Translation fault, level -1.When FEAT_LPA2 is implemented
0b101100Address Size fault, level -2.When FEAT_D128 is implemented
0b110000TLB conflict abort.
0b110001Unsupported atomic hardware update fault.When FEAT_HAF is implemented

All other values are reserved.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

MSS encoding for Granule Protection Check faults on write to trace buffer

1514131211109876543210
RES0

Bits [15:0]:

Reserved, RES0.

MSS encoding for trace buffer management event for an IMPLEMENTATION DEFINED reason

1514131211109876543210
IMPLEMENTATION DEFINED

IMPLEMENTATION DEFINED, bits [15:0]:

IMPLEMENTATION DEFINED.

Accessing TRBSR_EL1

The PE might ignore a write to TRBSR_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBSR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x018TRBSR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRBTRG_EL1

Trace Buffer Trigger Counter Register

Specifies the number of bytes of trace to capture following a Detected Trigger before a Trigger Event.

Configuration

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.

Attributes

TRBTRG_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
TRG

Bits [63:32]:

Reserved, RES0.

TRG, bits [31:0]:

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:

  • TRBTRG_EL1 is nonzero.
  • TRBSR_EL1.TRG is 1. The architecture places restrictions on the values that software can write to the counter.

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:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing TRBTRG_EL1

The PE might ignore a write to TRBTRG_EL1 if any of the following apply:

  • TRBLIMITR_EL1.E is 1 and the Trace Buffer Unit is using Self-hosted mode.
  • TRBLIMITR_EL1.XE is 1 and the Trace Buffer Unit is using External mode.

TRBTRG_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
TRBE0x020TRBTRG_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalTraceBufferAccess(addrdesc), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RW.

TRCACATR<n>, n = 0, 15

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.

Configuration

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.

Attributes

TRCACATR<n> is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0EXLEVEL_RL_EL2EXLEVEL_RL_EL1EXLEVEL_RL_EL0RES0EXLEVEL_NS_EL2EXLEVEL_NS_EL1EXLEVEL_NS_EL0EXLEVEL_S_EL3EXLEVEL_S_EL2EXLEVEL_S_EL1EXLEVEL_S_EL0RES0CONTEXTCONTEXTTYPERES0

Bits [63:19]:

Reserved, RES0.

EXLEVEL_RL_EL2, bit [18] when FEAT_RME is implemented:

Realm EL2 address comparison control. Controls whether a comparison can occur at EL2 in Realm state.

EXLEVEL_RL_EL2Meaning
0b0When 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.
0b1When 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_RL_EL1, bit [17] when FEAT_RME is implemented:

Realm EL1 address comparison control. Controls whether a comparison can occur at EL1 in Realm state.

EXLEVEL_RL_EL1Meaning
0b0When 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.
0b1When 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_RL_EL0, bit [16] when FEAT_RME is implemented:

Realm EL0 address comparison control. Controls whether a comparison can occur at EL0 in Realm state.

EXLEVEL_RL_EL0Meaning
0b0When 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.
0b1When 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bit [15]:

Reserved, RES0.

EXLEVEL_NS_EL2, bit [14] when Non-secure EL2 is implemented:

Non-secure EL2 address comparison control. Controls whether a comparison can occur at EL2 in Non-secure state.

EXLEVEL_NS_EL2Meaning
0b0The Address Comparator performs comparisons in Non-secure EL2.
0b1The Address Comparator does not perform comparisons in Non-secure EL2.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_NS_EL1, bit [13] when Non-secure EL1 is implemented:

Non-secure EL1 address comparison control. Controls whether a comparison can occur at EL1 in Non-secure state.

EXLEVEL_NS_EL1Meaning
0b0The Address Comparator performs comparisons in Non-secure EL1.
0b1The Address Comparator does not perform comparisons in Non-secure EL1.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_NS_EL0, bit [12] when Non-secure EL0 is implemented:

Non-secure EL0 address comparison control. Controls whether a comparison can occur at EL0 in Non-secure state.

EXLEVEL_NS_EL0Meaning
0b0The Address Comparator performs comparisons in Non-secure EL0.
0b1The Address Comparator does not perform comparisons in Non-secure EL0.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL3, bit [11] when EL3 is implemented:

EL3 address comparison control. Controls whether a comparison can occur at EL3.

EXLEVEL_S_EL3Meaning
0b0The Address Comparator performs comparisons at EL3.
0b1The Address Comparator does not perform comparisons at EL3.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL2, bit [10] when Secure EL2 is implemented:

Secure EL2 address comparison control. Controls whether a comparison can occur at EL2 in Secure state.

EXLEVEL_S_EL2Meaning
0b0The Address Comparator performs comparisons in Secure EL2.
0b1The Address Comparator does not perform comparisons in Secure EL2.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL1, bit [9] when Secure EL1 is implemented:

Secure EL1 address comparison control. Controls whether a comparison can occur at EL1 in Secure state.

EXLEVEL_S_EL1Meaning
0b0The Address Comparator performs comparisons in Secure EL1.
0b1The Address Comparator does not perform comparisons in Secure EL1.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

EXLEVEL_S_EL0, bit [8] when Secure EL0 is implemented:

Secure EL0 address comparison control. Controls whether a comparison can occur at EL0 in Secure state.

EXLEVEL_S_EL0Meaning
0b0The Address Comparator performs comparisons in Secure EL0.
0b1The Address Comparator does not perform comparisons in Secure EL0.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bit [7]:

Reserved, RES0.

CONTEXT, bits [6:4] when TRCIDR4.NUMCIDC != '0000' or TRCIDR4.NUMVMIDC != '0000':

Selects a Context Identifier Comparator or Virtual Context Identifier Comparator:

CONTEXTMeaningApplies when
0b000Comparator 0.
0b001Comparator 1.When UInt(TRCIDR4.NUMCIDC) > 1 or UInt(TRCIDR4.NUMVMIDC) > 1
0b010Comparator 2.When UInt(TRCIDR4.NUMCIDC) > 2 or UInt(TRCIDR4.NUMVMIDC) > 2
0b011Comparator 3.When UInt(TRCIDR4.NUMCIDC) > 3 or UInt(TRCIDR4.NUMVMIDC) > 3
0b100Comparator 4.When UInt(TRCIDR4.NUMCIDC) > 4 or UInt(TRCIDR4.NUMVMIDC) > 4
0b101Comparator 5.When UInt(TRCIDR4.NUMCIDC) > 5 or UInt(TRCIDR4.NUMVMIDC) > 5
0b110Comparator 6.When UInt(TRCIDR4.NUMCIDC) > 6 or UInt(TRCIDR4.NUMVMIDC) > 6
0b111Comparator 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

CONTEXTTYPE, bits [3:2] when TRCIDR4.NUMCIDC != '0000' or TRCIDR4.NUMVMIDC != '0000':

Controls whether the Address Comparator is dependent on a Context Identifier Comparator, a Virtual Context Identifier Comparator, or both comparisons.

CONTEXTTYPEMeaningApplies when
0b00The Address Comparator is not dependent on the Context Identifier Comparators or Virtual Context Identifier Comparators.
0b01The 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'
0b10The 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'
0b11The 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:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bits [1:0]:

Reserved, RES0.

Accessing TRCACATR<n>

Must be programmed if any of the following are true:

TRCACATR<n> can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x480 + (8 * n)TRCACATR<n>

Accessible as follows:

  • When OSLockStatus(), or !AllowExternalTraceAccess(addrdesc), or !IsTraceCorePowered(), accesses to this register generate an error response.
  • When n >= NUM_TRACE_ADDRESS_COMPARATOR_PAIRS * 2, accesses to this register are RES0.
  • Otherwise, accesses to this register are RW.

TRCACVR<n>, n = 0, 15

Trace Address Comparator Value Register <n>

Contains the address value.

Configuration

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.

Attributes

TRCACVR<n> is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
ADDRESS
ADDRESS

ADDRESS, bits [63:0]:

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:

  • 56, when FEAT_LVA3 is implemented.
  • 52, when FEAT_LVA is implemented.
  • 48, otherwise. The result of writing a value of all zeros or all ones to ADDRESS at bits[63:P] is the written value, and a read of the register returns the written value.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value.

Accessing TRCACVR<n>

Must be programmed if any of the following are true:

TRCACVR<n> can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x400 + (8 * n)TRCACVR<n>

Accessible as follows:

  • When OSLockStatus(), or !AllowExternalTraceAccess(addrdesc), or !IsTraceCorePowered(), accesses to this register generate an error response.
  • When n >= NUM_TRACE_ADDRESS_COMPARATOR_PAIRS * 2, accesses to this register are RES0.
  • Otherwise, accesses to this register are RW.