Webcentive RISC-V Reference

tcontrol

Trigger control register

Address
0x7A5
Group
Debug CSRs (0x7A0 to 0x7BF)
Privilege
MRW (privileged spec CSR listing, Debug/Trace Registers (shared with Debug Mode))
Access
read/write; lowest privilege M (machine)
Address range
Standard read/write debug CSRs
Name in riscv-unified-db
Trigger Control

Privileged spec: Trigger control register

Description

This optional register is only accessible in M-mode and Debug Mode and provides various control bits related to triggers.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
MPTE7RW-H

M-mode previous trigger enable field. MPTE and MTE provide one solution to a problem regarding triggers with action=0 firing in M-mode trap handlers. When any trap into M-mode is taken, MPTE is set to the value of MTE.

MTE3RW-H

M-mode trigger enable field. 0 (disabled):: Triggers with action=0 do not match/fire while the hart is in M-mode. 1 (enabled):: Triggers do match/fire while the hart is in M-mode. When any trap into M-mode is taken, MTE is set to 0. When mret is executed, MTE is set to the value of MPTE.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages