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 › Silicon & Architectures › External debug and trace register pages: part 19 of 22

Writeup External debug and trace register pages: part 19 of 22

started by admin

admin admin admingod mode Posts 116
Rep 505
Joined Nov 2026
2d ago OP #98

Archived Arm source pages for the External debug and trace register pages. Part 19 of 22. This part covers TRCDEVARCH through TRCIDR3.

TRCDEVARCH

Trace Device Architecture Register

Provides discovery information for the component.

For additional information, see the CoreSight Architecture Specification.

Configuration

External register TRCDEVARCH bits [31:0] are architecturally mapped to AArch64 System register TRCDEVARCH[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCDEVARCH are RES0.

Attributes

TRCDEVARCH is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
ARCHITECTPRESENTREVISIONARCHVERARCHPART

ARCHITECT, bits [31:21]:

Defines the architect of the component. For Trace, this is Arm Limited.

Bits [31:28] are the JEP106 continuation code, 0b0100.

Bits [27:21] are the JEP106 identification code, 0b0111011.

Reads as 0b01000111011.

Access to this field is RO.

PRESENT, bit [20]:

DEVARCH presence. Indicates that the TRCDEVARCH register provides architecture information.

Reads as 0b1.

Access to this field is RO.

REVISION, bits [19:16]:

Revision. Defines the architecture revision of the component.

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

REVISIONMeaning
0b0000ETEv1.0, FEAT_ETE.
0b0001ETEv1.1, FEAT_ETEv1p1.
0b0010ETEv1.2, FEAT_ETEv1p2.
0b0011ETEv1.3, FEAT_ETEv1p3.

All other values are reserved.

Access to this field is RO.

ARCHVER, bits [15:12]:

Architecture Version. Defines the architecture version of the component.

ARCHVERMeaning
0b0101ETEv1.

ARCHVER and ARCHPART are also defined as a single field, ARCHID, so that ARCHVER is ARCHID[15:12].

This field reads as 0x5.

Access to this field is RO.

ARCHPART, bits [11:0]:

Architecture Part. Defines the architecture of the component.

ARCHPARTMeaning
0xA13Arm PE trace architecture.

ARCHVER and ARCHPART are also defined as a single field, ARCHID, so that ARCHPART is ARCHID[11:0].

This field reads as 0xA13.

Access to this field is RO.

Accessing TRCDEVARCH

External debugger accesses to this register are unaffected by the OS Lock.

TRCDEVARCH can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0xFBCTRCDEVARCH

Accessible as follows:

  • When !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCDEVID

Trace Device Configuration Register

Provides discovery information for the component.

For additional information, see the CoreSight Architecture Specification.

Configuration

External register TRCDEVID bits [31:0] are architecturally mapped to AArch64 System register TRCDEVID[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCDEVID are RES0.

Attributes

TRCDEVID is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0

Bits [31:0]:

Reserved, RES0.

Accessing TRCDEVID

External debugger accesses to this register are unaffected by the OS Lock.

TRCDEVID can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0xFC8TRCDEVID

Accessible as follows:

  • When !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCEVENTCTL0R

Trace Event Control 0 Register

Controls the generation of ETEEvents.

Configuration

External register TRCEVENTCTL0R bits [31:0] are architecturally mapped to AArch64 System register TRCEVENTCTL0R[31:0].

This register is present only when FEAT_ETE is implemented, FEAT_TRC_EXT is implemented, and TRCIDR4.NUMRSPAIR != '0000'. Otherwise, direct accesses to TRCEVENTCTL0R are RES0.

Attributes

TRCEVENTCTL0R is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
EVENT3_TYPERES0EVENT3_SELEVENT2_TYPERES0EVENT2_SELEVENT1_TYPERES0EVENT1_SELEVENT0_TYPERES0EVENT0_SEL

EVENT3_TYPE, bit [31] when TRCIDR4.NUMRSPAIR != '0000' and UInt(TRCIDR0.NUMEVENT) >= 3:

Chooses the type of Resource Selector.

EVENT3_TYPEMeaning
0b0A single Resource Selector. TRCEVENTCTL0R.EVENT3.SEL[4:0] selects the single Resource Selector, from 0-31, used to activate the resource event.
0b1A Boolean-combined pair of Resource Selectors. TRCEVENTCTL0R.EVENT3.SEL[3:0] selects the Resource Selector pair, from 0-15, that has a Boolean function that is applied to it whose output is used to activate the resource event. TRCEVENTCTL0R.EVENT3.SEL[4] 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 [30:29]:

Reserved, RES0.

EVENT3_SEL, bits [28:24] when TRCIDR4.NUMRSPAIR != '0000' and UInt(TRCIDR0.NUMEVENT) >= 3:

When any of the selected resource events occurs and TRCEVENTCTL1R.INSTEN[3] == 1, then Event element 3 is generated in the instruction trace element stream.

Defines the selected Resource Selector or pair of Resource Selectors. TRCEVENTCTL0R.EVENT3.TYPE controls whether TRCEVENTCTL0R.EVENT3.SEL is the index of a single Resource Selector, or the index of a pair of Resource Selectors.

If an unimplemented Resource Selector is selected using this field, the behavior of the resource event is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

If an unimplemented Resource Selector is selected using this field, the value returned on a direct read of this field is UNKNOWN.

Selecting Resource Selector pair 0 using this field is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

EVENT2_TYPE, bit [23] when TRCIDR4.NUMRSPAIR != '0000' and UInt(TRCIDR0.NUMEVENT) >= 2:

Chooses the type of Resource Selector.

EVENT2_TYPEMeaning
0b0A single Resource Selector. TRCEVENTCTL0R.EVENT2.SEL[4:0] selects the single Resource Selector, from 0-31, used to activate the resource event.
0b1A Boolean-combined pair of Resource Selectors. TRCEVENTCTL0R.EVENT2.SEL[3:0] selects the Resource Selector pair, from 0-15, that has a Boolean function that is applied to it whose output is used to activate the resource event. TRCEVENTCTL0R.EVENT2.SEL[4] 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 [22:21]:

Reserved, RES0.

EVENT2_SEL, bits [20:16] when TRCIDR4.NUMRSPAIR != '0000' and UInt(TRCIDR0.NUMEVENT) >= 2:

When any of the selected resource events occurs and TRCEVENTCTL1R.INSTEN[2] == 1, then Event element 2 is generated in the instruction trace element stream.

Defines the selected Resource Selector or pair of Resource Selectors. TRCEVENTCTL0R.EVENT2.TYPE controls whether TRCEVENTCTL0R.EVENT2.SEL is the index of a single Resource Selector, or the index of a pair of Resource Selectors.

If an unimplemented Resource Selector is selected using this field, the behavior of the resource event is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

If an unimplemented Resource Selector is selected using this field, the value returned on a direct read of this field is UNKNOWN.

Selecting Resource Selector pair 0 using this field is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

EVENT1_TYPE, bit [15] when TRCIDR4.NUMRSPAIR != '0000' and UInt(TRCIDR0.NUMEVENT) >= 1:

Chooses the type of Resource Selector.

EVENT1_TYPEMeaning
0b0A single Resource Selector. TRCEVENTCTL0R.EVENT1.SEL[4:0] selects the single Resource Selector, from 0-31, used to activate the resource event.
0b1A Boolean-combined pair of Resource Selectors. TRCEVENTCTL0R.EVENT1.SEL[3:0] selects the Resource Selector pair, from 0-15, that has a Boolean function that is applied to it whose output is used to activate the resource event. TRCEVENTCTL0R.EVENT1.SEL[4] 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 [14:13]:

Reserved, RES0.

EVENT1_SEL, bits [12:8] when TRCIDR4.NUMRSPAIR != '0000' and UInt(TRCIDR0.NUMEVENT) >= 1:

When any of the selected resource events occurs and TRCEVENTCTL1R.INSTEN[1] == 1, then Event element 1 is generated in the instruction trace element stream.

Defines the selected Resource Selector or pair of Resource Selectors. TRCEVENTCTL0R.EVENT1.TYPE controls whether TRCEVENTCTL0R.EVENT1.SEL is the index of a single Resource Selector, or the index of a pair of Resource Selectors.

If an unimplemented Resource Selector is selected using this field, the behavior of the resource event is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

If an unimplemented Resource Selector is selected using this field, the value returned on a direct read of this field is UNKNOWN.

Selecting Resource Selector pair 0 using this field is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

EVENT0_TYPE, bit [7] when TRCIDR4.NUMRSPAIR != '0000':

Chooses the type of Resource Selector.

EVENT0_TYPEMeaning
0b0A single Resource Selector. TRCEVENTCTL0R.EVENT0.SEL[4:0] selects the single Resource Selector, from 0-31, used to activate the resource event.
0b1A Boolean-combined pair of Resource Selectors. TRCEVENTCTL0R.EVENT0.SEL[3:0] selects the Resource Selector pair, from 0-15, that has a Boolean function that is applied to it whose output is used to activate the resource event. TRCEVENTCTL0R.EVENT0.SEL[4] 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 [6:5]:

Reserved, RES0.

EVENT0_SEL, bits [4:0] when TRCIDR4.NUMRSPAIR != '0000':

When any of the selected resource events occurs and TRCEVENTCTL1R.INSTEN[0] == 1, then Event element 0 is generated in the instruction trace element stream.

Defines the selected Resource Selector or pair of Resource Selectors. TRCEVENTCTL0R.EVENT0.TYPE controls whether TRCEVENTCTL0R.EVENT0.SEL is the index of a single Resource Selector, or the index of a pair of Resource Selectors.

If an unimplemented Resource Selector is selected using this field, the behavior of the resource event is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

If an unimplemented Resource Selector is selected using this field, the value returned on a direct read of this field is UNKNOWN.

Selecting Resource Selector pair 0 using this field is UNPREDICTABLE, and the resource event might fire or might not fire when the resources are not in the Paused state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

Accessing TRCEVENTCTL0R

Must be programmed if implemented.

If the trace unit is not in the Idle state it is CONSTRAINED UNPREDICTABLE whether writes to this register are ignored.

TRCEVENTCTL0R can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x020TRCEVENTCTL0R

Accessible as follows:

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

TRCEVENTCTL1R

Trace Event Control 1 Register

Controls the behavior of the ETEEvents that TRCEVENTCTL0R selects.

Configuration

External register TRCEVENTCTL1R bits [31:0] are architecturally mapped to AArch64 System register TRCEVENTCTL1R[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCEVENTCTL1R are RES0.

Attributes

TRCEVENTCTL1R is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0OELPOVERRIDEATBRES0INSTEN[3]INSTEN[2]INSTEN[1]INSTEN[0]

Bits [31:14]:

Reserved, RES0.

OE, bit [13] when TRCIDR5.OE == '1':

ETE Trace Output Enable control.

OEMeaning
0b0Trace output to any IMPLEMENTATION DEFINED trace output interface is disabled.
0b1Trace output to any IMPLEMENTATION DEFINED trace output interface is enabled.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

LPOVERRIDE, bit [12] when TRCIDR5.LPOVERRIDE == '1':

Low-power Override Mode select.

LPOVERRIDEMeaning
0b0Trace unit Low-power Override Mode is not enabled. That is, the trace unit is permitted to enter low-power state.
0b1Trace unit Low-power Override Mode is enabled. That is, entry to a low-power state does not affect the trace unit resources or trace generation.

Otherwise:

Reserved, RES0.

ATB, bit [11] when TRCIDR5.ATBTRIG == '1':

AMBA Trace Bus (ATB) trigger enable.

If a CoreSight ATB interface is implemented then when ETEEvent 0 occurs the trace unit sets:

  • ATID == 0x7D.
  • ATDATA to the value of TRCTRACEIDR. If the width of ATDATA is greater than the width of TRCTRACEIDR.TRACEID then the trace unit zeroes the upper ATDATA bits.

If ETEEvent 0 is programmed to occur based on program execution, such as an Address Comparator, the ATB trigger might not be inserted into the ATB stream at the same time as any trace generated by that program execution is output by the trace unit. Typically, the generated trace might be buffered in a trace unit which means that the ATB trigger would be output before the associated trace is output.

If ETEEvent 0 is asserted multiple times in close succession, the trace unit is required to generate an ATB trigger for the first assertion, but might ignore one or more of the subsequent assertions. Arm recommends that the window in which ETEEvent 0 is ignored is limited only by the time taken to output an ATB trigger.

ATBMeaning
0b0ATB trigger is disabled.
0b1ATB trigger is enabled.

Otherwise:

Reserved, RES0.

Bits [10:4]:

Reserved, RES0.

INSTEN[<m>], bit [m], for m = 3 to 0:

Event element control.

INSTEN[<m>]Meaning
0b0The trace unit does not generate an Event element <m>.
0b1The trace unit generates an Event element <m> when ETEEvent <m> occurs.

Accessing this field has the following behavior:

  • When TRCIDR4.NUMRSPAIR == '0000', access to this field is RES0 . Access to this field is RES0 if all the following are true:

    • TRCIDR4.NUMRSPAIR != '0000'.
    • m > UInt(TRCIDR0.NUMEVENT).
  • Otherwise, access to this field is RW.

Accessing TRCEVENTCTL1R

Must be programmed.

If the trace unit is not in the Idle state it is CONSTRAINED UNPREDICTABLE whether writes to this register are ignored.

TRCEVENTCTL1R can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x024TRCEVENTCTL1R

Accessible as follows:

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

TRCEXTINSELR<n>, n = 0, 3

Trace External Input Select Register <n>

Use this to set, or read, which External Inputs are resources to the trace unit.

The name TRCEXTINSELR is an alias of TRCEXTINSELR0.

Configuration

External register TRCEXTINSELR<n> bits [31:0] are architecturally mapped to AArch64 System register TRCEXTINSELR<n>[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCEXTINSELR<n> are RES0.

Attributes

TRCEXTINSELR<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0evtCount

Bits [31:16]:

Reserved, RES0.

evtCount, bits [15:0]:

PMU event to select.

Software must program this field with a PMU event that is supported by the PE being programmed.

If FEAT_PMUv3p8 is implemented and this field is programmed to an event that is reserved or not supported by the PE, Arm recommends that the External Input Selector is not active and the value returned by a direct or external read of this field is the value written to the field.

Otherwise, if evtCount is programmed to a PMU event that is reserved or not supported by the PE, the behavior depends on the value written:

  • For the range 0x0000 to 0x003F, the External Input Selector is not active, and the value returned by a direct or external read of this field is the value written to the field.
  • If FEAT_PMUv3p1 is implemented, for the range 0x4000 to 0x403F, Arm recommends that the External Input Selector is not active and the value returned by a direct or external read of this field is the value written to the field.
  • For other values, it is UNPREDICTABLE whether the External Input Selector is active and the value returned by a direct or external read of this field is UNKNOWN. UNPREDICTABLE means the PMU event must not expose privileged information.

Arm recommends that the behavior across a family of implementations is defined such that if a given implementation does not include a PMU event from a set of common IMPLEMENTATION DEFINED PMU events, then the External Input Selector is not active and the value read back on evtCount is the value written.

The reset behavior of this field is:

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

Accessing TRCEXTINSELR<n>

Must be programmed if any of the following is true: TRCRSCTLR.GROUP == 0b0000 and TRCRSCTLR.EXTIN[n] == 1.

If the trace unit is not in the Idle state it is CONSTRAINED UNPREDICTABLE whether writes to this register are ignored.

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

ComponentOffsetInstance
ETE0x120 + (4 * n)TRCEXTINSELR<n>

Accessible as follows:

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

TRCIDR0

Trace ID Register 0

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR0 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR0[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR0 are RES0.

Attributes

TRCIDR0 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0COMMOPTTSSIZETSMARKITERES0TRCEXDATAQSUPPQFILTCONDTYPENUMEVENTRETSTACKRES0TRCCCITRCCONDTRCBBTRCDATAINSTP0RES1

Bits [31:30]:

Reserved, RES0.

COMMOPT, bit [29]:

Indicates the contents and encodings of Cycle count packets.

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

COMMOPTMeaning
0b0Commit mode 0.
0b1Commit mode 1.

The Commit mode defines the contents and encodings of Cycle Count packets, in particular how Commit elements are indicated by these packets. See the descriptions of these packets for more details.

Accessing this field has the following behavior:

Access to this field is RAO/WI if all the following are true:

  • TRCIDR0.TRCCCI == '1'.
  • UInt(TRCIDR8.MAXSPEC) == 0x0.
  • When TRCIDR0.TRCCCI == '0', access to this field is RAZ/WI.
  • Otherwise, access to this field is RO.

TSSIZE, bits [28:24]:

Indicates that the trace unit implements Global timestamping and the size of the timestamp value.

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

TSSIZEMeaning
0b00000Global timestamping not implemented.
0b01000Global timestamping implemented with a 64-bit timestamp value.

All other values are reserved.

When FEAT_ETE is implemented, the only permitted value is 0b01000.

Access to this field is RO.

TSMARK, bit [23]:

Indicates whether Timestamp Marker elements are generated.

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

TSMARKMeaning
0b0Timestamp Marker elements are not generated.
0b1Timestamp Marker elements are generated.

Access to this field is RO.

ITE, bit [22]:

Indicates whether Instrumentation Trace is implemented.

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

ITEMeaning
0b0Instrumentation Trace not implemented.
0b1Instrumentation Trace implemented.

This field has the value 1 if FEAT_ITE is implemented.

Access to this field is RO.

Bits [21:18]:

Reserved, RES0.

TRCEXDATA, bit [17] when TRCIDR0.TRCDATA != '00':

Indicates if the trace unit implements tracing of data transfers for exceptions and exception returns. Data tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

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

TRCEXDATAMeaning
0b0Tracing of data transfers for exceptions and exception returns not implemented.
0b1Tracing of data transfers for exceptions and exception returns implemented.

Access to this field is RO.

Otherwise:

Reserved, RES0.

QSUPP, bits [16:15]:

Indicates that the trace unit implements Q element support.

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

QSUPPMeaning
0b00Q element support is not implemented.
0b01Q element support is implemented, and only supports Q elements with instruction counts.
0b10Q element support is implemented, and only supports Q elements without instruction counts.
0b11Q element support is implemented, and supports: Q elements with instruction counts. Q elements without instruction counts.

Access to this field is RO.

QFILT, bit [14]:

Indicates if the trace unit implements Q element filtering.

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

QFILTMeaning
0b0Q element filtering is not implemented.
0b1Q element filtering is implemented.

If TRCIDR0.QSUPP == 0b00 then this field is 0.

Access to this field is RO.

CONDTYPE, bits [13:12] when TRCIDR0.TRCCOND == '1':

Indicates how conditional instructions are traced. Conditional instruction tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

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

CONDTYPEMeaning
0b00Conditional instructions are traced with an indication of whether they pass or fail their condition code check.
0b01Conditional instructions are traced with an indication of the APSR condition flags.

All other values are reserved.

Access to this field is RO.

Otherwise:

Reserved, RES0.

NUMEVENT, bits [11:10] when TRCIDR4.NUMRSPAIR == '0000':

Indicates the number of ETEEvents implemented.

NUMEVENTMeaning
0b00The trace unit supports 0 ETEEvents.

All other values are reserved.

Access to this field is RO.

when TRCIDR4.NUMRSPAIR != '0000':

Indicates the number of ETEEvents implemented.

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

NUMEVENTMeaning
0b00The trace unit supports 1 ETEEvent.
0b01The trace unit supports 2 ETEEvents.
0b10The trace unit supports 3 ETEEvents.
0b11The trace unit supports 4 ETEEvents.

Access to this field is RO.

Otherwise:

Reserved, RES0.

RETSTACK, bit [9]:

Indicates if the trace unit supports the return stack.

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

RETSTACKMeaning
0b0Return stack not implemented.
0b1Return stack implemented.

Access to this field is RO.

Bit [8]:

Reserved, RES0.

TRCCCI, bit [7]:

Indicates if the trace unit implements cycle counting.

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

TRCCCIMeaning
0b0Cycle counting not implemented.
0b1Cycle counting implemented.

When FEAT_ETE is implemented, the only permitted value is 1.

Access to this field is RO.

TRCCOND, bit [6]:

Indicates if the trace unit implements conditional instruction tracing. Conditional instruction tracing is not implemented in ETE and this field is reserved for other trace architectures.

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

TRCCONDMeaning
0b0Conditional instruction tracing not implemented.
0b1Conditional instruction tracing implemented.

When FEAT_ETE is implemented, the only permitted value is 0.

Access to this field is RO.

TRCBB, bit [5]:

Indicates if the trace unit implements branch broadcasting.

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

TRCBBMeaning
0b0Branch broadcasting not implemented.
0b1Branch broadcasting implemented.

When FEAT_ETE is implemented, the only permitted value is 1.

Access to this field is RO.

TRCDATA, bits [4:3]:

Indicates if the trace unit implements data tracing. Data tracing is not implemented in ETE and this field is reserved for other trace architectures.

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

TRCDATAMeaning
0b00Data tracing not implemented.
0b11Data tracing implemented.

All other values are reserved.

When FEAT_ETE is implemented, the only permitted value is 0b00.

Access to this field is RO.

INSTP0, bits [2:1]:

Indicates if load and store instructions are P0 instructions. Load and store instructions as P0 instructions is not implemented in ETE and this field is reserved for other trace architectures.

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

INSTP0Meaning
0b00Load and store instructions are not P0 instructions.
0b11Load and store instructions are P0 instructions.

All other values are reserved.

When FEAT_ETE is implemented, the only permitted value is 0b00.

Access to this field is RO.

Bit [0]:

Reserved, RES1.

Accessing TRCIDR0

TRCIDR0 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1E0TRCIDR0

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR1

Trace ID Register 1

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR1 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR1[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR1 are RES0.

Attributes

TRCIDR1 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
DESIGNERRES0RES1TRCARCHMAJTRCARCHMINREVISION

DESIGNER, bits [31:24]:

Indicates which company designed the trace unit. The permitted values of this field are the same as MIDR_EL1.Implementer.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Bits [23:16]:

Reserved, RES0.

Bits [15:12]:

Reserved, RES1.

TRCARCHMAJ, bits [11:8]:

Major architecture version.

TRCARCHMAJMeaning
0b1111If both TRCIDR1.TRCARCHMAJ and TRCIDR1.TRCARCHMIN == 0xF then refer to TRCDEVARCH.

All other values are reserved.

This field reads as 0b1111.

Access to this field is RO.

TRCARCHMIN, bits [7:4]:

Minor architecture version.

TRCARCHMINMeaning
0b1111If both TRCIDR1.TRCARCHMAJ and TRCIDR1.TRCARCHMIN == 0xF then refer to TRCDEVARCH.

All other values are reserved.

This field reads as 0b1111.

Access to this field is RO.

REVISION, bits [3:0]:

Implementation revision.

Returns an IMPLEMENTATION DEFINED value that identifies the revision of the trace unit.

Arm deprecates any use of this field and recommends that implementations set this field to zero.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Accessing TRCIDR1

TRCIDR1 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1E4TRCIDR1

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR10

Trace ID Register 10

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR10 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR10[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR10 are RES0.

Attributes

TRCIDR10 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NUMP1KEY

NUMP1KEY, bits [31:0] when TRCIDR0.TRCDATA != '00':

Indicates the number of P1 right-hand keys. Data tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Accessing TRCIDR10

TRCIDR10 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x188TRCIDR10

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR11

Trace ID Register 11

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR11 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR11[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR11 are RES0.

Attributes

TRCIDR11 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NUMP1SPC

NUMP1SPC, bits [31:0] when TRCIDR0.TRCDATA != '00':

Indicates the number of special P1 right-hand keys. Data tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Accessing TRCIDR11

TRCIDR11 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x18CTRCIDR11

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR12

Trace ID Register 12

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR12 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR12[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR12 are RES0.

Attributes

TRCIDR12 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NUMCONDKEY

NUMCONDKEY, bits [31:0] when TRCIDR0.TRCCOND == '1':

Indicates the number of conditional instruction right-hand keys. Conditional instruction tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Accessing TRCIDR12

TRCIDR12 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x190TRCIDR12

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR13

Trace ID Register 13

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR13 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR13[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR13 are RES0.

Attributes

TRCIDR13 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NUMCONDSPC

NUMCONDSPC, bits [31:0] when TRCIDR0.TRCCOND == '1':

Indicates the number of special conditional instruction right-hand keys. Conditional instruction tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Accessing TRCIDR13

TRCIDR13 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x194TRCIDR13

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR2

Trace ID Register 2

Returns the tracing capabilities of the trace unit.

Configuration

External register TRCIDR2 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR2[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR2 are RES0.

Attributes

TRCIDR2 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
WFXMODEVMIDOPTCCSIZEDVSIZEDASIZEVMIDSIZECIDSIZEIASIZE

WFXMODE, bit [31]:

Indicates whether WFI, WFIT, WFE, and WFET instructions are classified as P0 instructions:

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

WFXMODEMeaning
0b0WFI, WFIT, WFE, and WFET instructions are not classified as P0 instructions.
0b1WFI, WFIT, WFE, and WFET instructions are classified as P0 instructions.

Access to this field is RO.

VMIDOPT, bits [30:29]:

Indicates the options for Virtual context identifier selection.

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

VMIDOPTMeaning
0b00Virtual context identifier selection not supported. TRCCONFIGR.VMIDOPT is RES0.
0b01Virtual context identifier selection supported. TRCCONFIGR.VMIDOPT is implemented.
0b10Virtual context identifier selection not supported. TRCCONFIGR.VMIDOPT is RES1.

All other values are reserved.

If TRCIDR2.VMIDSIZE == 0b00000 then this field is 0b00.

If TRCIDR2.VMIDSIZE != 0b00000 then this field is 0b10.

Access to this field is RO.

CCSIZE, bits [28:25] when TRCIDR0.TRCCCI == '1':

Indicates the size of the cycle counter.

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

CCSIZEMeaning
0b0000The cycle counter is 12 bits in length.
0b0001The cycle counter is 13 bits in length.
0b0010The cycle counter is 14 bits in length.
0b0011The cycle counter is 15 bits in length.
0b0100The cycle counter is 16 bits in length.
0b0101The cycle counter is 17 bits in length.
0b0110The cycle counter is 18 bits in length.
0b0111The cycle counter is 19 bits in length.
0b1000The cycle counter is 20 bits in length.

All other values are reserved.

Access to this field is RO.

Otherwise:

Reserved, RES0.

DVSIZE, bits [24:20] when TRCIDR0.TRCDATA != '00':

Indicates the data value size in bytes. Data tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

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

DVSIZEMeaning
0b00000Data value tracing not implemented.
0b00100Data value tracing has a maximum of 32-bit data values.
0b01000Data value tracing has a maximum of 64-bit data values.

All other values are reserved.

Access to this field is RO.

Otherwise:

Reserved, RES0.

DASIZE, bits [19:15] when TRCIDR0.TRCDATA != '00':

Indicates the data address size in bytes. Data tracing is not implemented in ETE and this field is reserved for other trace architectures. Allocated in other trace architectures.

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

DASIZEMeaning
0b00000Data address tracing not implemented.
0b00100Data address tracing has a maximum of 32-bit data addresses.
0b01000Data address tracing has a maximum of 64-bit data addresses.

All other values are reserved.

Access to this field is RO.

Otherwise:

Reserved, RES0.

VMIDSIZE, bits [14:10]:

Indicates the trace unit Virtual context identifier size.

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

VMIDSIZEMeaning
0b00000Virtual context identifier tracing is not supported.
0b000018-bit Virtual context identifier size.
0b0001016-bit Virtual context identifier size.
0b0010032-bit Virtual context identifier size.

All other values are reserved.

If the PE does not implement EL2 then this field is 0b00000.

If the PE implements EL2 then this field is 0b00100.

Access to this field is RO.

CIDSIZE, bits [9:5]:

Indicates the Context identifier size.

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

CIDSIZEMeaning
0b00000Context identifier tracing is not supported.
0b0010032-bit Context identifier size.

All other values are reserved.

When FEAT_ETE is implemented, the only permitted value is 0b00100.

Access to this field is RO.

IASIZE, bits [4:0]:

Virtual instruction address size.

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

IASIZEMeaning
0b00100Maximum of 32-bit instruction address size.
0b01000Maximum of 64-bit instruction address size.

All other values are reserved.

When FEAT_ETE is implemented, the only permitted value is 0b01000.

Access to this field is RO.

Accessing TRCIDR2

TRCIDR2 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1E8TRCIDR2

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

TRCIDR3

Trace ID Register 3

Returns the base architecture of the trace unit.

Configuration

External register TRCIDR3 bits [31:0] are architecturally mapped to AArch64 System register TRCIDR3[31:0].

This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCIDR3 are RES0.

Attributes

TRCIDR3 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NOOVERFLOWNUMPROC[2:0]SYSSTALLSTALLCTLSYNCPRTRCERRRES0EXLEVEL_NS_EL2EXLEVEL_NS_EL1EXLEVEL_NS_EL0EXLEVEL_S_EL3EXLEVEL_S_EL2EXLEVEL_S_EL1EXLEVEL_S_EL0RES0NUMPROC[4:3]CCITMIN

NOOVERFLOW, bit [31]:

Indicates if overflow prevention is implemented.

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

NOOVERFLOWMeaning
0b0Overflow prevention is not implemented.
0b1Overflow prevention is implemented.

If TRCIDR3.STALLCTL == 0 then this field is 0.

Access to this field is RO.

NUMPROC, bits [13:12, 30:28]:

Indicates the number of PEs available for tracing.

NUMPROCMeaning
0b00000The trace unit can trace one PE.

When FEAT_ETE is implemented, the only permitted value is 0b00000.

The NUMPROC field is split as follows:

  • NUMPROC[2:0] is TRCIDR3[30:28].
  • NUMPROC[4:3] is TRCIDR3[13:12]. Access to this field is RO.

SYSSTALL, bit [27]:

Indicates if stalling of the PE is permitted.

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

SYSSTALLMeaning
0b0Stalling of the PE is not permitted.
0b1Stalling of the PE is permitted.

The value of this field might be dynamic and change based on system conditions.

If TRCIDR3.STALLCTL == 0 then this field is 0.

Access to this field is RO.

STALLCTL, bit [26]:

Indicates if trace unit implements stalling of the PE.

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

STALLCTLMeaning
0b0Stalling of the PE is not implemented.
0b1Stalling of the PE is implemented.

Access to this field is RO.

SYNCPR, bit [25]:

Indicates if an implementation has a fixed synchronization period.

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

SYNCPRMeaning
0b0TRCSYNCPR is read/write so software can change the synchronization period.
0b1TRCSYNCPR is read-only so the synchronization period is fixed.

When FEAT_ETE is implemented, the only permitted value is 0.

Access to this field is RO.

TRCERR, bit [24]:

Indicates forced tracing of System Error exceptions is implemented.

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

TRCERRMeaning
0b0Forced tracing of System Error exceptions is not implemented.
0b1Forced tracing of System Error exceptions is implemented.

When FEAT_ETE is implemented, the only permitted value is 1.

Access to this field is RO.

Bit [23]:

Reserved, RES0.

EXLEVEL_NS_EL2, bit [22]:

Indicates if Non-secure EL2 is implemented.

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

EXLEVEL_NS_EL2Meaning
0b0Non-secure EL2 is not implemented.
0b1Non-secure EL2 is implemented.

Access to this field is RO.

EXLEVEL_NS_EL1, bit [21]:

Indicates if Non-secure EL1 is implemented.

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

EXLEVEL_NS_EL1Meaning
0b0Non-secure EL1 is not implemented.
0b1Non-secure EL1 is implemented.

Access to this field is RO.

EXLEVEL_NS_EL0, bit [20]:

Indicates if Non-secure EL0 is implemented.

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

EXLEVEL_NS_EL0Meaning
0b0Non-secure EL0 is not implemented.
0b1Non-secure EL0 is implemented.

Access to this field is RO.

EXLEVEL_S_EL3, bit [19]:

Indicates if EL3 is implemented.

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

EXLEVEL_S_EL3Meaning
0b0EL3 is not implemented.
0b1EL3 is implemented.

Access to this field is RO.

EXLEVEL_S_EL2, bit [18]:

Indicates if Secure EL2 is implemented.

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

EXLEVEL_S_EL2Meaning
0b0Secure EL2 is not implemented.
0b1Secure EL2 is implemented.

Access to this field is RO.

EXLEVEL_S_EL1, bit [17]:

Indicates if Secure EL1 is implemented.

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

EXLEVEL_S_EL1Meaning
0b0Secure EL1 is not implemented.
0b1Secure EL1 is implemented.

Access to this field is RO.

EXLEVEL_S_EL0, bit [16]:

Indicates if Secure EL0 is implemented.

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

EXLEVEL_S_EL0Meaning
0b0Secure EL0 is not implemented.
0b1Secure EL0 is implemented.

Access to this field is RO.

Bits [15:14]:

Reserved, RES0.

CCITMIN, bits [11:0] when TRCIDR0.TRCCCI == '0':

Indicates the minimum value that can be programmed in TRCCCCTLR.THRESHOLD.

Reads as 0x000.

Access to this field is RO.

when TRCIDR0.TRCCCI == '1':

Indicates the minimum value that can be programmed in TRCCCCTLR.THRESHOLD.

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

CCITMINMeaning
0x001..0xFFFThe minimum value that can be programmed in TRCCCCTLR.THRESHOLD.

The minimum value of this field is 0x001.

Access to this field is RO.

Otherwise:

Reserved, RES0.

Accessing TRCIDR3

TRCIDR3 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1ECTRCIDR3

Accessible as follows:

  • When OSLockStatus() or !IsTraceCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

Log in to reply.