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

sctrctl

T1 riscv register register
Supervisor Control Transfer Records Control Register
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Ssctr)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeS
ExtensionsSsctr

Summary

The sctrctl register enables and configures the Control Transfer Records capability in S mode.

Syntax / Encoding

CSR 0x14e (S-mode, RW)

Bitfields (20)

BitsFieldDescription
63:60CUSTOMWARL bits designated for custom use. The value 0 must correspond to standard behavior.
47DIRLJMPINHWhen set, it inhibits recording of other direct jumps (with linkage).
46INDLJMPINHWhen set, it inhibits recording of other indirect jumps (with linkage).
45RETINHWhen set, it inhibits recording of function returns.
44CORSWAPINHWhen set, it inhibits recording of co-routine swaps.
43DIRJMPINHWhen set, it inhibits recording of direct jumps (without linkage).
42INDJMPINHWhen set, it inhibits recording of indirect jumps (without linkage).
41DIRCALLINHWhen set, it inhibits recording of direct calls.
40INDCALLINHWhen set, it inhibits recording of indirect calls.
37TKBRINHWhen set, it inhibits recording of taken branches.
36NTBRENWhen set, it enables recording of not-taken branches.
35TRETINHWhen set, it inhibits recording of trap returns.
34INTRINHWhen set, it inhibits recording of interrupts.
33EXCINHWhen set, it inhibits recording of exceptions.
12LCOFIFRZSet sctrstatus.FROZEN on local-counter-overflow interrupt (LCOFI) that traps to M or S mode.
11BPFRZSet sctrstatus.FROZEN on a breakpoint exception that traps to M or S mode.
8STEEnables recording of traps to S-mode when S=0.
7RASEMUWhen set, it enables RAS (Return Address Stack) Emulation Mode.
1SEnable transfer recording in the Supervisor mode.
0UEnable transfer recording in the User mode.