ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

tcontrol

T1 riscv register register
Trigger Control
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Sdtrig)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeM
ExtensionsSdtrig

Summary

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

Syntax / Encoding

CSR 0x7a5 (M-mode, RW)

Bitfields (2)

BitsFieldDescription
7MPTEM-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.
3MTEM-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.