tselect
Debug/Trace trigger register select
- Address
0x7A0- 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 Select
Privileged spec: Debug/Trace trigger register select
Description
This register determines which trigger is accessible through the other Trigger Module registers.
It is optional if no triggers are implemented. The set of accessible triggers must start at 0, and be contiguous. This register is WARL. Writes of values greater than or equal to the number of supported triggers may result in a different value in this register than what was written or may point to a trigger where type=0.
To verify that what they wrote is a valid index, debuggers can read back the value and check that tselect holds what they wrote and read tdata1 to see that type is non-zero. Since triggers can be used both by Debug Mode and M-mode, the external debugger must restore this register if it modifies it.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
INDEX | RV32 31-0 / RV64 63-0 | RW | Index value |
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/tselect.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)