C10.14 ViewInst Main Control Register

The TRCVICTLR characteristics are:

Purpose
Controls instruction trace filtering.
Usage constraints
  • Accepts writes only when the trace unit is disabled.
  • Returns stable data only when TRCSTATR.PMSTABLE==1.
  • Must be programmed, particularly to set the value of the SSSTATUS bit, that sets the state of the start-stop logic.
Configurations
Available in all configurations.
Attributes
See C10.1 ETM register summary.
Figure C10-13 TRCVICTLR bit assignments
To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


[31:24]
Reserved, res0.
EXLEVEL_NS, [23:20]

In Non-secure state, each bit controls whether instruction tracing is enabled for the corresponding exception level:

0Trace unit generates instruction trace, in Non-secure state, for exception level n.
1

Trace unit does not generate instruction trace, in Non-secure state, for exception level n.

The exception levels are:

Bit[20]

Exception level 0.

Bit[21]Exception level 1.
Bit[22]Exception level 2.
Bit[23]RAZ/WI. Instruction tracing is not implemented for exception level 3.
EXLEVEL_S, [19:16]

In Secure state, each bit controls whether instruction tracing is enabled for the corresponding exception level:

0Trace unit generates instruction trace, in Secure state, for exception level n.
1Trace unit does not generate instruction trace, in Secure state, for exception level n.

The exception levels are:

Bit[16]Exception level 0.
Bit[17]Exception level 1.
Bit[18]RAZ/WI. Instruction tracing is not implemented for exception level 2.
Bit[19]Exception level 3.
[15:12]
Reserved, res0.
TRCERR, [11]

Selects whether a system error exception must always be traced:

0System error exception is traced only if the instruction or exception immediately before the system error exception is traced.
1System error exception is always traced regardless of the value of ViewInst.
TRCRESET, [10]

Selects whether a reset exception must always be traced:

0Reset exception is traced only if the instruction or exception immediately before the reset exception is traced.
1Reset exception is always traced regardless of the value of ViewInst.
SSSTATUS, [9]

Indicates the current status of the start/stop logic:

0Start/stop logic is in the stopped state.
1Start/stop logic is in the started state.
[8]
Reserved, res0.
TYPE, [7]

Selects the resource type for the viewinst event:

0Single selected resource.
1Boolean combined resource pair.
[6:4]
Reserved, res0.
SEL, [3:0]

Selects the resource number to use for the viewinst event, based on the value of TYPE:

When TYPE is 0, selects a single selected resource from 0-15 defined by bits[3:0].

When TYPE is 1, selects a Boolean combined resource pair from 0-7 defined by bits[2:0].

The TRCVICTLR can be accessed through the external debug interface, offset 0x080.

Non-ConfidentialPDF file icon PDF versionARM 100241_0001_00_en
Copyright © 2016, 2017 ARM Limited or its affiliates. All rights reserved.