Controls instruction trace filtering.
External register TRCVICTLR bits [31:0] are architecturally mapped to AArch64 System register TRCVICTLR[31:0].
This register is present only when FEAT_ETE is implemented and FEAT_TRC_EXT is implemented. Otherwise, direct accesses to TRCVICTLR are RES0.
TRCVICTLR is a 32-bit register.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RES0 | EXLEVEL_RL_EL2 | EXLEVEL_RL_EL1 | EXLEVEL_RL_EL0 | RES0 | EXLEVEL_NS_EL2 | EXLEVEL_NS_EL1 | EXLEVEL_NS_EL0 | EXLEVEL_S_EL3 | EXLEVEL_S_EL2 | EXLEVEL_S_EL1 | EXLEVEL_S_EL0 | RES0 | TRCERR | TRCRESET | SSSTATUS | RES0 | EVENT_TYPE | RES0 | Bits[4:0] |
Reserved, RES0.
Filter instruction trace for EL2 in Realm state.
EXLEVEL_RL_EL2 | Meaning |
---|---|
0b0 | When TRCVICTLR.EXLEVEL_NS_EL2 is 0 the trace unit generates instruction trace for EL2 in Realm state. When TRCVICTLR.EXLEVEL_NS_EL2 is 1 the trace unit does not generate instruction trace for EL2 in Realm state. |
0b1 | When TRCVICTLR.EXLEVEL_NS_EL2 is 0 the trace unit does not generate instruction trace for EL2 in Realm state. When TRCVICTLR.EXLEVEL_NS_EL2 is 1 the trace unit generates instruction trace for EL2 in Realm state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL1 in Realm state.
EXLEVEL_RL_EL1 | Meaning |
---|---|
0b0 | When TRCVICTLR.EXLEVEL_NS_EL1 is 0 the trace unit generates instruction trace for EL1 in Realm state. When TRCVICTLR.EXLEVEL_NS_EL1 is 1 the trace unit does not generate instruction trace for EL1 in Realm state. |
0b1 | When TRCVICTLR.EXLEVEL_NS_EL1 is 0 the trace unit does not generate instruction trace for EL1 in Realm state. When TRCVICTLR.EXLEVEL_NS_EL1 is 1 the trace unit generates instruction trace for EL1 in Realm state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL0 in Realm state.
EXLEVEL_RL_EL0 | Meaning |
---|---|
0b0 | When TRCVICTLR.EXLEVEL_NS_EL0 is 0 the trace unit generates instruction trace for EL0 in Realm state. When TRCVICTLR.EXLEVEL_NS_EL0 is 1 the trace unit does not generate instruction trace for EL0 in Realm state. |
0b1 | When TRCVICTLR.EXLEVEL_NS_EL0 is 0 the trace unit does not generate instruction trace for EL0 in Realm state. When TRCVICTLR.EXLEVEL_NS_EL0 is 1 the trace unit generates instruction trace for EL0 in Realm state. |
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Filter instruction trace for EL2 in Non-secure state.
EXLEVEL_NS_EL2 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL2 in Non-secure state. |
0b1 |
The trace unit does not generate instruction trace for EL2 in Non-secure state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL1 in Non-secure state.
EXLEVEL_NS_EL1 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL1 in Non-secure state. |
0b1 |
The trace unit does not generate instruction trace for EL1 in Non-secure state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL0 in Non-secure state.
EXLEVEL_NS_EL0 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL0 in Non-secure state. |
0b1 |
The trace unit does not generate instruction trace for EL0 in Non-secure state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL3.
EXLEVEL_S_EL3 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL3. |
0b1 |
The trace unit does not generate instruction trace for EL3. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL2 in Secure state.
EXLEVEL_S_EL2 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL2 in Secure state. |
0b1 |
The trace unit does not generate instruction trace for EL2 in Secure state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL1 in Secure state.
EXLEVEL_S_EL1 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL1 in Secure state. |
0b1 |
The trace unit does not generate instruction trace for EL1 in Secure state. |
The reset behavior of this field is:
Reserved, RES0.
Filter instruction trace for EL0 in Secure state.
EXLEVEL_S_EL0 | Meaning |
---|---|
0b0 |
The trace unit generates instruction trace for EL0 in Secure state. |
0b1 |
The trace unit does not generate instruction trace for EL0 in Secure state. |
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Controls the forced tracing of System Error exceptions.
TRCERR | Meaning |
---|---|
0b0 |
Forced tracing of System Error exceptions is disabled. |
0b1 |
Forced tracing of System Error exceptions is enabled. |
The reset behavior of this field is:
Reserved, RES0.
Controls the forced tracing of PE Resets.
TRCRESET | Meaning |
---|---|
0b0 |
Forced tracing of PE Resets is disabled. |
0b1 |
Forced tracing of PE Resets is enabled. |
The reset behavior of this field is:
ViewInst start/stop function status.
SSSTATUS | Meaning |
---|---|
0b0 | Stopped State. The ViewInst start/stop function is in the stopped state. |
0b1 | Started State. The ViewInst start/stop function is in the started state. |
Before software enables the trace unit, it must write to this field to set the initial state of the ViewInst start/stop function. If the ViewInst start/stop function is not used then set this field to 1. Arm recommends that the value of this field is set before each trace session begins.
If the trace unit becomes disabled while a start point or stop point is still speculative, then the value of TRCVICTLR.SSSTATUS is UNKNOWN and might represent the result of a speculative start point or stop point.
If software which is running on the PE being traced disables the trace unit, either by clearing TRCPRGCTLR.EN or locking the OS Lock, Arm recommends that a DSB and an ISB instruction are executed before disabling the trace unit to prevent any start points or stop points being speculative at the point of disabling the trace unit. This procedure assumes that all start points or stop points occur before the barrier instructions are executed. The procedure does not guarantee that there are no speculative start points or stop points when disabling, although it helps minimize the probability.
The reset behavior of this field is:
Accessing this field has the following behavior:
Reserved, RES0.
Chooses the type of Resource Selector.
EVENT_TYPE | Meaning |
---|---|
0b0 | A single Resource Selector. TRCVICTLR.EVENT.SEL[4:0] selects the single Resource Selector, from 0-31, used to activate the resource event. |
0b1 | A Boolean-combined pair of Resource Selectors. TRCVICTLR.EVENT.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. TRCVICTLR.EVENT.SEL[4] is RES0. |
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Defines the selected Resource Selector or pair of Resource Selectors. TRCVICTLR.EVENT.TYPE controls whether TRCVICTLR.EVENT.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.
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:
This field is reserved:
Reserved, RES0.
Must be programmed.
Reads from this register might return an UNKNOWN value if the trace unit is not in either of the Idle or Stable states.
Component | Offset | Instance |
---|---|---|
ETE | 0x080 | TRCVICTLR |
This interface is accessible as follows: