tdata1
First Debug/Trace trigger data register
- Address
0x7A1- 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 Data 1
Privileged spec: First Debug/Trace trigger data register
Description
This register provides access to the trigger selected by tselect.
The reset values listed here apply to every underlying trigger.
This register is optional if no triggers are implemented. Writing 0 to this register must result in a trigger that is disabled. If this trigger supports multiple types, then the hardware should disable it by changing type to 15.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
TYPE | RV32 31-28 / RV64 63-60 | RW |
Other values are reserved for future use. |
DMODE | RV32 27 / RV64 59 | RW | If type is 0, then this bit is hard-wired to 0. 0 (both): Both Debug and M-mode can write the This bit is only writable from Debug Mode. In ordinary use, external debuggers will always set this bit when configuring a trigger. When clearing this bit, debuggers should also set the action field (whose location depends on type) to something other than 1. |
DATA | RV32 26-0 / RV64 58-0 | RW | If type is 0, then this field is hard-wired to 0. Trigger-specific data. |
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/tdata1.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)