12.7.1. Main Control Register

The ETMCR characteristics are:

Purpose

Controls general operation of the PTM, such as whether tracing is enabled or is cycle-accurate.

Usage constraints

There are no usage constraints.

Configurations

Available in all PTM configurations.

Attributes

See the register summary in Table 12.4.

Figure 12.2 shows the ETMCR bit assignments.

Figure 12.2. ETMCR 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.


Table 12.5 shows the ETMCR bit assignments.

Table 12.5. ETMCR bit assignments

BitsNameFunction
[31]-

SBZP.

[30]VMID trace enable

This bit controls VMID tracing. Set this bit to 1 to enable VMID tracing. The reset value is 0.

[29]Return stack enable

Set this bit to 1 to enable use of the return stack. The reset value is 0.

[28]Timestamp enable

Set this bit to 1 to enable timestamping. The reset value is 0.

[27:25]Processor select

RAZ. This bit is not implemented.

[24]Instrumentation resources access control

RAZ. This bit is not implemented.

[23:16]-

SBZP.

[15:14]ContextIDsize

The possible value of this field are:

b00

No Context ID tracing.

b01

One byte traced, Context ID bits[7:0].

b10

Two bytes traced, Context ID bits[15:0].

b11

Four bytes traced, Context ID bits[31:0].

The reset value is 0

Note

The PTM traces only the number of bytes specified, even if the new Context ID value is larger than this.

[13]-

SBZP.

[12]CycleAccurate

Set this bit to 1 to enable cycle-accurate tracing. The reset value is 0.

[11]-

SBZP.

[10]ProgBit

Programming bit. You must set this bit to 1 to program the PTM, and clear it to 0 when programming is complete. The reset value is 0.

[9]Debug request control

When this bit is set to 1 and the trigger event occurs, the DBGRQ output is asserted until DBGACK is observed. This enables a debugger to force the processor into Debug state. The reset value is 0.

[8]BranchBroadcast

Set this bit to 1 to enable branch broadcasting. Branch broadcasting traces the addresses of direct branch instructions. The reset value is 0.

[7]Stall processor

RAZ. This bit is not implemented.

[6:1]-SBZP.
[0]Powerdown

This bit enables external control of the PTM. This bit must be cleared by the trace software tools at the beginning of a debug session. When this bit is set to 0, PTM is enabled.To avoid corruption of trace data, this bit must not be set before ETMSR[1] bit reads as 1.


Copyright © 2011 ARM. All rights reserved.ARM DDI 0438D
Non-ConfidentialID122011