sctrctl
Supervisor Control Transfer Records Control Register
- Address
0x14E- Group
- Supervisor-level CSRs
- Privilege
SRW(privileged spec CSR listing, Supervisor Control Transfer Records Configuration)- Access
- read/write; lowest privilege S (supervisor)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Supervisor Control Transfer Records Control Register
Privileged spec: Supervisor Control Transfer Records Control Register
Description
The sctrctl register enables and configures the Control Transfer Records capability in S mode.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
U | 0 | RW | Enable transfer recording in the User mode. |
S | 1 | RW | Enable transfer recording in the Supervisor mode. |
RASEMU | 7 | RW | When set, it enables RAS (Return Address Stack) Emulation Mode. |
STE | 8 | RW | Enables recording of traps to S-mode when S=0. |
BPFRZ | 11 | RW | Set |
LCOFIFRZ | 12 | RW | Set |
EXCINH | 33 | RW | When set, it inhibits recording of exceptions. |
INTRINH | 34 | RW | When set, it inhibits recording of interrupts. |
TRETINH | 35 | RW | When set, it inhibits recording of trap returns. |
NTBREN | 36 | RW | When set, it enables recording of not-taken branches. |
TKBRINH | 37 | RW | When set, it inhibits recording of taken branches. |
INDCALLINH | 40 | RW | When set, it inhibits recording of indirect calls. |
DIRCALLINH | 41 | RW | When set, it inhibits recording of direct calls. |
INDJMPINH | 42 | RW | When set, it inhibits recording of indirect jumps (without linkage). |
DIRJMPINH | 43 | RW | When set, it inhibits recording of direct jumps (without linkage). |
CORSWAPINH | 44 | RW | When set, it inhibits recording of co-routine swaps. |
RETINH | 45 | RW | When set, it inhibits recording of function returns. |
INDLJMPINH | 46 | RW | When set, it inhibits recording of other indirect jumps (with linkage). |
DIRLJMPINH | 47 | RW | When set, it inhibits recording of other direct jumps (with linkage). |
CUSTOM | 63-60 | RW | WARL bits designated for custom use. The value 0 must correspond to standard behavior. |
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/Smctr/sctrctl.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)