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
| Field | Bits | Type | Description |
|---|---|---|---|
MPTE | 7 | RW-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. |
MTE | 3 | RW-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 |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/tcontrol.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)