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 20 of 22

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

started by admin

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

Archived Arm source pages for the External debug and trace register pages. Part 20 of 22. This part covers TRCIDR4 through TRCRSR.

TRCIDR4

Trace ID Register 4

Returns the tracing capabilities of the trace unit.

Configuration

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

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

Attributes

TRCIDR4 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NUMVMIDCNUMCIDCNUMSSCCNUMRSPAIRNUMPCRES0SUPPDACNUMDVCNUMACPAIRS

NUMVMIDC, bits [31:28]:

Indicates the number of Virtual Context Identifier Comparators that are available for tracing.

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

NUMVMIDCMeaning
0b0000..0b1000The number of Virtual Context Identifier Comparators in this implementation.

All other values are reserved.

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

The parameter NUM_TRACE_VIRTUAL_CONTEXT_IDENTIFIER_COMPARATORS is derived from this value.

Access to this field is RO.

NUMCIDC, bits [27:24]:

Indicates the number of Context Identifier Comparators that are available for tracing.

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

NUMCIDCMeaning
0b0000..0b1000The number of Context Identifier Comparators in this implementation.

All other values are reserved.

The parameter NUM_TRACE_CONTEXT_IDENTIFIER_COMPARATORS is derived from this value.

Access to this field is RO.

NUMSSCC, bits [23:20]:

Indicates the number of Single-shot Comparator Controls that are available for tracing.

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

NUMSSCCMeaning
0b0000..0b1000The number of Single-shot Comparator Controls in this implementation.

All other values are reserved.

The parameter NUM_TRACE_SINGLE_SHOT_COMPARATOR_CONTROLS is derived from this value.

Access to this field is RO.

NUMRSPAIR, bits [19:16]:

Indicates the number of resource selector pairs that are available for tracing.

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

NUMRSPAIRMeaning
0b0000This implementation has zero resource selector pairs.
0b0001..0b1111The number of resource selector pairs in this implementation, minus one.

All other values are reserved.

The parameter NUM_TRACE_RESOURCE_SELECTOR_PAIRS is derived from this value.

Access to this field is RO.

NUMPC, bits [15:12]:

Indicates the number of PE Comparator Inputs that are available for tracing.

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

NUMPCMeaning
0b0000..0b1000The number of PE Comparator Inputs in this implementation.

All other values are reserved.

Access to this field is RO.

Bits [11:9]:

Reserved, RES0.

SUPPDAC, bit [8] when TRCIDR4.NUMACPAIRS != '0000':

Indicates whether data address comparisons are implemented. Data address comparisons are not implemented in ETE and are reserved for other trace architectures. Allocated in other trace architectures.

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

SUPPDACMeaning
0b0Data address comparisons not implemented.
0b1Data address comparisons implemented.

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

Access to this field is RO.

Otherwise:

Reserved, RES0.

NUMDVC, bits [7:4]:

Indicates the number of data value comparators. Data value comparators are not implemented in ETE and are reserved for other trace architectures. Allocated in other trace architectures.

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

NUMDVCMeaning
0b0000..0b1000The number of data value comparators in this implementation.

All other values are reserved.

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

Access to this field is RO.

NUMACPAIRS, bits [3:0]:

Indicates the number of Address Comparator pairs that are available for tracing.

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

NUMACPAIRSMeaning
0b0000..0b1000The number of Address Comparator pairs in this implementation.

All other values are reserved.

The parameter NUM_TRACE_ADDRESS_COMPARATOR_PAIRS is derived from this value.

Access to this field is RO.

Accessing TRCIDR4

TRCIDR4 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1F0TRCIDR4

Accessible as follows:

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

TRCIDR5

Trace ID Register 5

Returns the tracing capabilities of the trace unit.

Configuration

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

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

Attributes

TRCIDR5 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
OENUMCNTRNUMSEQSTATERES0LPOVERRIDEATBTRIGTRACEIDSIZERES0NUMEXTINSELNUMEXTIN

OE, bit [31]:

Indicates support for the ETE Trace Output Enable.

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

OEMeaning
0b0ETE Trace Output Enable is not implemented.
0b1ETE Trace Output Enable is implemented.

When FEAT_ETEv1p3 is implemented and when any IMPLEMENTATION DEFINED trace output interface is implemented, this field is 1.

Access to this field is RO.

NUMCNTR, bits [30:28]:

Indicates the number of Counters that are available for tracing.

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

NUMCNTRMeaning
0b000..0b100The number of Counters implemented.

All other values are reserved.

If TRCIDR4.NUMRSPAIR == 0b0000 then this field is 0b000.

The parameter NUM_TRACE_COUNTERS is derived from this value.

Access to this field is RO.

NUMSEQSTATE, bits [27:25]:

Indicates if the Sequencer is implemented and the number of Sequencer states that are implemented.

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

NUMSEQSTATEMeaning
0b000The Sequencer is not implemented.
0b100Four Sequencer states are implemented.

All other values are reserved.

If TRCIDR4.NUMRSPAIR == 0b0000 then this field is 0b000.

Access to this field is RO.

Bit [24]:

Reserved, RES0.

LPOVERRIDE, bit [23]:

Indicates support for Low-power Override Mode.

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

LPOVERRIDEMeaning
0b0The trace unit does not support Low-power Override Mode.
0b1The trace unit supports Low-power Override Mode.

Access to this field is RO.

ATBTRIG, bit [22]:

Indicates if the implementation can support ATB triggers.

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

ATBTRIGMeaning
0b0The implementation does not support ATB triggers.
0b1The implementation supports ATB triggers.

If TRCIDR4.NUMRSPAIR == 0b0000 then this field is 0.

Access to this field is RO.

TRACEIDSIZE, bits [21:16]:

Indicates the trace ID width.

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

TRACEIDSIZEMeaning
0b000000The external trace interface is not implemented.
0b000111The implementation supports a 7-bit trace ID.

All other values are reserved.

AMBA ATB requires a 7-bit trace ID width.

Access to this field is RO.

Bits [15:12]:

Reserved, RES0.

NUMEXTINSEL, bits [11:9]:

Indicates how many External Input Selector resources are implemented.

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

NUMEXTINSELMeaning
0b000..0b100The number of External Input Selector resources implemented.

All other values are reserved.

The parameter NUM_TRACE_EXTERNAL_INPUT_SELECTOR_RESOURCES is derived from this value.

Access to this field is RO.

NUMEXTIN, bits [8:0]:

Indicates how many External Inputs are implemented.

NUMEXTINMeaning
0b111111111Unified PMU event selection.

All other values are reserved.

Access to this field is RO.

Accessing TRCIDR5

TRCIDR5 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1F4TRCIDR5

Accessible as follows:

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

TRCIDR6

Trace ID Register 6

Returns the tracing capabilities of the trace unit.

Configuration

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

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

Attributes

TRCIDR6 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0EXLEVEL_RL_EL2EXLEVEL_RL_EL1EXLEVEL_RL_EL0

Bits [31:3]:

Reserved, RES0.

EXLEVEL_RL_EL2, bit [2]:

Indicates if Realm EL2 is implemented.

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

EXLEVEL_RL_EL2Meaning
0b0Realm EL2 is not implemented.
0b1Realm EL2 is implemented.

Access to this field is RO.

EXLEVEL_RL_EL1, bit [1]:

Indicates if Realm EL1 is implemented.

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

EXLEVEL_RL_EL1Meaning
0b0Realm EL1 is not implemented.
0b1Realm EL1 is implemented.

Access to this field is RO.

EXLEVEL_RL_EL0, bit [0]:

Indicates if Realm EL0 is implemented.

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

EXLEVEL_RL_EL0Meaning
0b0Realm EL0 is not implemented.
0b1Realm EL0 is implemented.

Access to this field is RO.

Accessing TRCIDR6

TRCIDR6 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1F8TRCIDR6

Accessible as follows:

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

TRCIDR7

Trace ID Register 7

Returns the tracing capabilities of the trace unit.

Configuration

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

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

Attributes

TRCIDR7 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0

Bits [31:0]:

Reserved, RES0.

Accessing TRCIDR7

TRCIDR7 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1FCTRCIDR7

Accessible as follows:

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

TRCIDR8

Trace ID Register 8

Returns the maximum speculation depth of the instruction trace element stream.

Configuration

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

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

Attributes

TRCIDR8 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
MAXSPEC

MAXSPEC, bits [31:0]:

Indicates the maximum speculation depth of the instruction trace element stream. This is the maximum number of P0 elements in the trace element stream that can be speculative at any time.

This field has an IMPLEMENTATION DEFINED value.

Access to this field is RO.

Accessing TRCIDR8

TRCIDR8 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x180TRCIDR8

Accessible as follows:

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

TRCIDR9

Trace ID Register 9

Returns the tracing capabilities of the trace unit.

Configuration

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

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

Attributes

TRCIDR9 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
NUMP0KEY

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

Indicates the number of P0 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 TRCIDR9

TRCIDR9 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x184TRCIDR9

Accessible as follows:

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

TRCIMSPEC0

Trace IMP DEF Register 0

TRCIMSPEC0 shows the presence of any IMPLEMENTATION DEFINED features, and provides an interface to enable the features that are provided.

Configuration

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

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

Attributes

TRCIMSPEC0 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0ENSUPPORT

Bits [31:8]:

Reserved, RES0.

EN, bits [7:4] when TRCIMSPEC0.SUPPORT != '0000':

Enable. Controls whether the IMPLEMENTATION DEFINED features are enabled.

ENMeaning
0b0000The IMPLEMENTATION DEFINED features are not enabled. The trace unit must behave as if the IMPLEMENTATION DEFINED features are not supported.
0b0001The trace unit behavior is IMPLEMENTATION DEFINED.
0b0010The trace unit behavior is IMPLEMENTATION DEFINED.
0b0011The trace unit behavior is IMPLEMENTATION DEFINED.
0b0100The trace unit behavior is IMPLEMENTATION DEFINED.
0b0101The trace unit behavior is IMPLEMENTATION DEFINED.
0b0110The trace unit behavior is IMPLEMENTATION DEFINED.
0b0111The trace unit behavior is IMPLEMENTATION DEFINED.
0b1000The trace unit behavior is IMPLEMENTATION DEFINED.
0b1001The trace unit behavior is IMPLEMENTATION DEFINED.
0b1010The trace unit behavior is IMPLEMENTATION DEFINED.
0b1011The trace unit behavior is IMPLEMENTATION DEFINED.
0b1100The trace unit behavior is IMPLEMENTATION DEFINED.
0b1101The trace unit behavior is IMPLEMENTATION DEFINED.
0b1110The trace unit behavior is IMPLEMENTATION DEFINED.
0b1111The trace unit behavior is IMPLEMENTATION DEFINED.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

SUPPORT, bits [3:0]:

Indicates whether the implementation supports IMPLEMENTATION DEFINED features.

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

SUPPORTMeaning
0b0000No IMPLEMENTATION DEFINED features are supported.
0b0001IMPLEMENTATION DEFINED features are supported.
0b0010IMPLEMENTATION DEFINED features are supported.
0b0011IMPLEMENTATION DEFINED features are supported.
0b0100IMPLEMENTATION DEFINED features are supported.
0b0101IMPLEMENTATION DEFINED features are supported.
0b0110IMPLEMENTATION DEFINED features are supported.
0b0111IMPLEMENTATION DEFINED features are supported.
0b1000IMPLEMENTATION DEFINED features are supported.
0b1001IMPLEMENTATION DEFINED features are supported.
0b1010IMPLEMENTATION DEFINED features are supported.
0b1011IMPLEMENTATION DEFINED features are supported.
0b1100IMPLEMENTATION DEFINED features are supported.
0b1101IMPLEMENTATION DEFINED features are supported.
0b1110IMPLEMENTATION DEFINED features are supported.
0b1111IMPLEMENTATION DEFINED features are supported.

Use of nonzero values requires written permission from Arm.

Access to this field is RO.

Accessing TRCIMSPEC0

TRCIMSPEC0 can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x1C0TRCIMSPEC0

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.

TRCIMSPEC<n>, n = 1, 7

Trace IMP DEF Register <n>

These registers might return information that is specific to an implementation, or enable features specific to an implementation to be programmed. The product Technical Reference Manual describes these registers.

Configuration

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

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

Attributes

TRCIMSPEC<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
IMPLEMENTATION DEFINED

IMPLEMENTATION DEFINED, bits [31:0]:

IMPLEMENTATION DEFINED.

This field reads as an IMPLEMENTATION DEFINED value and writes to this field have IMPLEMENTATION DEFINED behavior.

Accessing TRCIMSPEC<n>

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

ComponentOffsetInstance
ETE0x1C0 + (4 * n)TRCIMSPEC<n>

Accessible as follows:

  • When OSLockStatus(), or !AllowExternalTraceAccess(addrdesc), or !IsTraceCorePowered(), accesses to this register generate an error response.
  • When an implementation does not implement TRCIMSPEC<n>, accesses to this register are RES0.
  • Otherwise, accesses to this register are RW.

TRCITEEDCR

Instrumentation Trace Extension External Debug Control Register

Controls instrumentation trace filtering.

Configuration

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

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

Attributes

TRCITEEDCR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0RLSNSE3E2E1E0

Bits [31:7]:

Reserved, RES0.

RL, bit [6] when FEAT_RME is implemented:

Instrumentation Trace in Realm state.

RLMeaning
0b0Instrumentation trace prohibited in Realm state.
0b1Instrumentation trace permitted in Realm state.

This field is ignored when SelfHostedTraceEnabled() returns TRUE.

This field is used in conjunction with TRCCONFIGR.ITO and TRCITEEDCR.E<m> to control whether Instrumentation trace is permitted or prohibited in Realm state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

S, bit [5] when HaveSecureState():

Instrumentation Trace in Secure state.

SMeaning
0b0Instrumentation trace prohibited in Secure state.
0b1Instrumentation trace permitted in Secure state.

This field is ignored when SelfHostedTraceEnabled() returns TRUE.

When FEAT_RME is not implemented, this field is used in conjunction with TRCCONFIGR.ITO, TRCITEEDCR.E3, and TRCITEEDCR.E<m> to control whether Instrumentation trace is permitted or prohibited in Secure state.

When FEAT_RME is implemented, this field is used in conjunction with TRCCONFIGR.ITO and TRCITEEDCR.E<m> to control whether Instrumentation trace is permitted or prohibited in Secure state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

NS, bit [4] when EL3 is implemented or NonSecureOnlyImplementation():

Instrumentation Trace in Non-secure state.

NSMeaning
0b0Instrumentation trace prohibited in Non-secure state.
0b1Instrumentation trace permitted in Non-secure state.

This field is ignored when SelfHostedTraceEnabled() returns TRUE.

This field is used in conjunction with TRCCONFIGR.ITO and TRCITEEDCR.E<m> to control whether Instrumentation trace is permitted or prohibited in Non-secure state.

The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

E3, bit [3] when EL3 is implemented:

Instrumentation Trace Enable at EL3.

E3Meaning
0b0Instrumentation trace prohibited at EL3.
0b1Instrumentation trace permitted at EL3.

This field is ignored when SelfHostedTraceEnabled() returns TRUE.

When FEAT_RME is not implemented, TRCITEEDCR.E3 is used in conjunction with TRCCONFIGR.ITO and TRCITEEDCR.S to control whether Instrumentation trace is permitted or prohibited at EL3.

When FEAT_RME is implemented, TRCITEEDCR.E3 is used in conjunction with TRCCONFIGR.ITO to control whether Instrumentation trace is permitted or prohibited 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.

E<m>, bit [m], for m = 2 to 0:

Instrumentation Trace Enable at EL<m>.

E<m>Meaning
0b0Instrumentation trace prohibited at EL<m>.
0b1Instrumentation trace permitted at EL<m>.

This field is ignored when SelfHostedTraceEnabled() returns TRUE.

This bit is used in conjunction with TRCCONFIGR.ITO, TRCITEEDCR.NS, TRCITEEDCR.S, and TRCITEEDCR.RL to control whether Instrumentation trace is permitted or prohibited at EL<m> in the specified Security states.

TRCITEEDCR.E<2> is RES0 if EL2 is not implemented in any Security states.

The reset behavior of this field is:

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

Accessing TRCITEEDCR

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

TRCITEEDCR can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x048TRCITEEDCR

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.

TRCOSLSR

Trace OS Lock Status Register

Returns the status of the Trace OS Lock.

Configuration

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

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

Attributes

TRCOSLSR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0OSLM[2:1]RES0OSLKOSLM[0]

Bits [31:5]:

Reserved, RES0.

OSLM, bits [4:3, 0]:

OS Lock model.

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

OSLMMeaning
0b000Trace OS Lock is not implemented.
0b010Trace OS Lock is implemented.
0b100Trace OS Lock is not implemented, and the trace unit is controlled by the PE OS Lock.

All other values are reserved.

When FEAT_ETE is implemented, the values 0b000 and 0b010 are not permitted.

The OSLM field is split as follows:

  • OSLM[2:1] is TRCOSLSR[4:3].
  • OSLM[0] is TRCOSLSR[0]. Access to this field is RO.

Bit [2]:

Reserved, RES0.

OSLK, bit [1]:

OS Lock status.

OSLKMeaning
0b0The OS Lock is unlocked.
0b1The OS Lock is locked.

When FEAT_ETE is implemented, this field indicates the state of the PE OS Lock.

When FEAT_ETMv4 is implemented, this field indicates the state of the Trace OS Lock.

Accessing TRCOSLSR

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

TRCOSLSR can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x304TRCOSLSR

Accessible as follows:

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

TRCPRGCTLR

Trace Programming Control Register

Enables the trace unit.

Configuration

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

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

Attributes

TRCPRGCTLR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0EN

Bits [31:1]:

Reserved, RES0.

EN, bit [0]:

Trace unit enable.

ENMeaning
0b0The trace unit is disabled.
0b1The trace unit is enabled.

The reset behavior of this field is:

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

Accessing TRCPRGCTLR

Must be programmed.

TRCPRGCTLR can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x004TRCPRGCTLR

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.

TRCQCTLR

Trace Q Element Control Register

Controls when Q elements are enabled.

Configuration

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

This register is present only when FEAT_ETE is implemented, FEAT_TRC_EXT is implemented, and TRCIDR0.QFILT == '1'. Otherwise, direct accesses to TRCQCTLR are RES0.

Attributes

TRCQCTLR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0MODERANGE[7]RANGE[6]RANGE[5]RANGE[4]RANGE[3]RANGE[2]RANGE[1]RANGE[0]

Bits [31:9]:

Reserved, RES0.

MODE, bit [8]:

Selects whether the Address Range Comparators selected by TRCQCTLR.RANGE indicate address ranges where the trace unit is permitted to generate Q elements or address ranges where the trace unit is not permitted to generate Q elements:

MODEMeaning
0b0Exclude mode. The Address Range Comparators selected by TRCQCTLR.RANGE indicate address ranges where the trace unit must not generate Q elements. If no ranges are selected, Q elements are permitted across the entire memory map.
0b1Include Mode. The Address Range Comparators selected by TRCQCTLR.RANGE indicate address ranges where the trace unit can generate Q elements. If all the implemented bits in RANGE are set to 0 then Q elements are disabled.

The reset behavior of this field is:

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

RANGE[<m>], bit [m], for m = 7 to 0:

Specifies whether Address Range Comparator <m> controls Q elements.

RANGE[<m>]Meaning
0b0The address range that Address Range Comparator <m> defines is not selected.
0b1The address range that Address Range Comparator <m> defines is selected.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value. Accessing this field has the following behavior:

  • When m >= UInt(TRCIDR4.NUMACPAIRS), access to this field is RES0 .

  • Otherwise, access to this field is RW.

Accessing TRCQCTLR

Must be programmed if TRCCONFIGR.QE != 0b00.

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

TRCQCTLR can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x044TRCQCTLR

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.

TRCRSCTLR<n>, n = 2, 31

Trace Resource Selection Control Register <n>

Controls the selection of the resources in the trace unit.

Configuration

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

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

Resource selector 0 always returns FALSE.

Resource selector 1 always returns TRUE.

Resource selectors are implemented in pairs. Each odd numbered resource selector is part of a pair with the even numbered resource selector that is numbered as one less than it. For example, resource selectors 2 and 3 form a pair.

Attributes

TRCRSCTLR<n> is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0PAIRINVINVGROUPSELECT

Bits [31:22]:

Reserved, RES0.

PAIRINV, bit [21] when n is even:

Controls whether the combined result from a resource selector pair is inverted.

PAIRINVMeaning
0b0Do not invert the combined output of the 2 resource selectors.
0b1Invert the combined output of the 2 resource selectors.

If:

  • A is the register TRCRSCTLR<n>.

  • B is the register TRCRSCTLR<n+1>. Then the combined output of the 2 resource selectors A and B depends on the value of (A.PAIRINV, A.INV, B.INV) as follows:

  • 0b000 -> A and B.

  • 0b001 -> Reserved.

  • 0b010 -> not(A) and B.

  • 0b011 -> not(A) and not(B).

  • 0b100 -> not(A) or not(B).

  • 0b101 -> not(A) or B.

  • 0b110 -> Reserved.

  • 0b111 -> A or B. The reset behavior of this field is:

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

Otherwise:

Reserved, RES0.

INV, bit [20]:

Controls whether the resource, that TRCRSCTLR<n>.GROUP and TRCRSCTLR<n>.SELECT selects, is inverted.

INVMeaning
0b0Do not invert the output of this selector.
0b1Invert the output of this selector.

The reset behavior of this field is:

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

GROUP, bits [19:16]:

Selects a group of resources.

GROUPMeaningSELECT
0b0000External Input Selectors.SELECT encoding for External Input Selectors
0b0001PE Comparator Inputs.SELECT encoding for PE Comparator Inputs
0b0010Counters and Sequencer.SELECT encoding for Counters and Sequencer
0b0011Single-shot Comparator Controls.SELECT encoding for Single-shot Comparator Controls
0b0100Single Address Comparators.SELECT encoding for Single Address Comparators
0b0101Address Range Comparators.SELECT encoding for Address Range Comparators
0b0110Context Identifier Comparators.SELECT encoding for Context Identifier Comparators
0b0111Virtual Context Identifier Comparators.SELECT encoding for Virtual Context Identifier Comparators

All other values are reserved.

The reset behavior of this field is:

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

SELECT, bits [15:0]:

Resource Specific Controls. Contains the controls specific to the resource group selected by GROUP, described in the following sections.

SELECT encoding for External Input Selectors

1514131211109876543210
RES0EXTIN[3]EXTIN[2]EXTIN[1]EXTIN[0]

Bits [15:4]:

Reserved, RES0.

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

Selects one or more External Inputs.

EXTIN[<m>]Meaning
0b0Ignore EXTIN <m>.
0b1Select EXTIN <m>.

This bit is RES0 if m >= TRCIDR5.NUMEXTINSEL.

The reset behavior of this field is:

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

SELECT encoding for PE Comparator Inputs

1514131211109876543210
RES0PECOMP[7]PECOMP[6]PECOMP[5]PECOMP[4]PECOMP[3]PECOMP[2]PECOMP[1]PECOMP[0]

Bits [15:8]:

Reserved, RES0.

PECOMP[<m>], bit [m], for m = 7 to 0:

Selects one or more PE Comparator Inputs.

PECOMP[<m>]Meaning
0b0Ignore PE Comparator Input <m>.
0b1Select PE Comparator Input <m>.

This bit is RES0 if m >= TRCIDR4.NUMPC.

The reset behavior of this field is:

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

SELECT encoding for Counters and Sequencer

1514131211109876543210
RES0SEQUENCER[3]SEQUENCER[2]SEQUENCER[1]SEQUENCER[0]COUNTERS[3]COUNTERS[2]COUNTERS[1]COUNTERS[0]

Bits [15:8]:

Reserved, RES0.

SEQUENCER[<m>], bit [m+4], for m = 3 to 0:

Sequencer states.

SEQUENCER[<m>]Meaning
0b0Ignore Sequencer state <m>.
0b1Select Sequencer state <m>.

This bit is RES0 if m >= TRCIDR5.NUMSEQSTATE.

The reset behavior of this field is:

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

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

Counters resources at zero.

COUNTERS[<m>]Meaning
0b0Ignore Counter <m>.
0b1Select Counter <m> is zero.

This bit is RES0 if m >= TRCIDR5.NUMCNTR.

The reset behavior of this field is:

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

SELECT encoding for Single-shot Comparator Controls

1514131211109876543210
RES0SINGLE_SHOT[7]SINGLE_SHOT[6]SINGLE_SHOT[5]SINGLE_SHOT[4]SINGLE_SHOT[3]SINGLE_SHOT[2]SINGLE_SHOT[1]SINGLE_SHOT[0]

Bits [15:8]:

Reserved, RES0.

SINGLE_SHOT[<m>], bit [m], for m = 7 to 0:

Selects one or more Single-shot Comparator Controls.

SINGLE_SHOT[<m>]Meaning
0b0Ignore Single-shot Comparator Control <m>.
0b1Select Single-shot Comparator Control <m>.

This bit is RES0 if m >= TRCIDR4.NUMSSCC.

The reset behavior of this field is:

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

SELECT encoding for Single Address Comparators

1514131211109876543210
SAC[15]SAC[14]SAC[13]SAC[12]SAC[11]SAC[10]SAC[9]SAC[8]SAC[7]SAC[6]SAC[5]SAC[4]SAC[3]SAC[2]SAC[1]SAC[0]

SAC[<m>], bit [m], for m = 15 to 0:

Selects one or more Single Address Comparators.

SAC[<m>]Meaning
0b0Ignore Single Address Comparator <m>.
0b1Select Single Address Comparator <m>.

This bit is RES0 if m >= 2 × TRCIDR4.NUMACPAIRS.

The reset behavior of this field is:

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

SELECT encoding for Address Range Comparators

1514131211109876543210
RES0ARC[7]ARC[6]ARC[5]ARC[4]ARC[3]ARC[2]ARC[1]ARC[0]

Bits [15:8]:

Reserved, RES0.

ARC[<m>], bit [m], for m = 7 to 0:

Selects one or more Address Range Comparators.

ARC[<m>]Meaning
0b0Ignore Address Range Comparator <m>.
0b1Select Address Range Comparator <m>.

This bit is RES0 if m >= TRCIDR4.NUMACPAIRS.

The reset behavior of this field is:

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

SELECT encoding for Context Identifier Comparators

1514131211109876543210
RES0CID[7]CID[6]CID[5]CID[4]CID[3]CID[2]CID[1]CID[0]

Bits [15:8]:

Reserved, RES0.

CID[<m>], bit [m], for m = 7 to 0:

Selects one or more Context Identifier Comparators.

CID[<m>]Meaning
0b0Ignore Context Identifier Comparator <m>.
0b1Select Context Identifier Comparator <m>.

This bit is RES0 if m >= TRCIDR4.NUMCIDC.

The reset behavior of this field is:

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

SELECT encoding for Virtual Context Identifier Comparators

1514131211109876543210
RES0VMID[7]VMID[6]VMID[5]VMID[4]VMID[3]VMID[2]VMID[1]VMID[0]

Bits [15:8]:

Reserved, RES0.

VMID[<m>], bit [m], for m = 7 to 0:

Selects one or more Virtual Context Identifier Comparators.

VMID[<m>]Meaning
0b0Ignore Virtual Context Identifier Comparator <m>.
0b1Select Virtual Context Identifier Comparator <m>.

This bit is RES0 if m >= TRCIDR4.NUMVMIDC.

The reset behavior of this field is:

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

Accessing TRCRSCTLR<n>

Must be programmed if any of the following are true:

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

ComponentOffsetInstance
ETE0x200 + (4 * n)TRCRSCTLR<n>

Accessible as follows:

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

TRCRSR

Trace Resources Status Register

Use this to set, or read, the status of the resources.

Configuration

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

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

Attributes

TRCRSR is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0TAEVENT[3]EVENT[2]EVENT[1]EVENT[0]RES0EXTIN[3]EXTIN[2]EXTIN[1]EXTIN[0]

Bits [31:13]:

Reserved, RES0.

TA, bit [12]:

Tracing active.

TAMeaning
0b0Tracing is not active.
0b1Tracing is active.

The reset behavior of this field is:

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

EVENT[<m>], bit [m+8], for m = 3 to 0:

Untraced status of ETEEvents.

EVENT[<m>]Meaning
0b0An ETEEvent <m> has not occurred.
0b1An ETEEvent <m> has occurred while the resources were in the Paused state.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value. 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.

Bits [7:4]:

Reserved, RES0.

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

The sticky status of the External Input Selectors.

EXTIN[<m>]Meaning
0b0An event selected by External Input Selector <m> has not occurred.
0b1At least one event selected by External Input Selector <m> has occurred while the resources were in the Paused state.

The reset behavior of this field is:

  • On a Trace unit reset, this field resets to an architecturally UNKNOWN value. Accessing this field has the following behavior:

  • When m >= UInt(TRCIDR5.NUMEXTINSEL), access to this field is RES0 .

  • Otherwise, access to this field is RW.

Accessing TRCRSR

Must always be programmed.

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

Reads from this register might return an UNKNOWN value if the trace unit is not in either of the Idle or Stable states.

TRCRSR can be accessed through the external debug interface:

ComponentOffsetInstance
ETE0x028TRCRSR

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.

Log in to reply.