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

vsctrctl

T1 riscv register register
Virtual 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 (H, Ssctr)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeVS
ExtensionsH, Ssctr

Summary

The vsctrctl register is a VS-mode's version of supervisor register sctrctl that configures the Control Transfer Records capability. When V=1, vsctrctl substitutes for the usual sctrctl, so instructions that normally read or modify sctrctl actually access vsctrctl instead.

Syntax / Encoding

CSR 0x24e (VS-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 VS mode.
11BPFRZSet sctrstatus.FROZEN on a breakpoint exception that traps to VS mode.
8STEEnables recording of traps to VS-mode when S=0.
7RASEMUWhen set, it enables RAS (Return Address Stack) Emulation Mode.
1SEnable transfer recording in the VS mode.
0UEnable transfer recording in the VU mode.

Reference Notes

The `vsctrctl` register is a VS-mode's version of supervisor register `sctrctl` that
configures the Control Transfer Records capability. When `V=1`, vsctrctl substitutes
for the usual `sctrctl`, so instructions that normally read or modify `sctrctl` actually
access `vsctrctl` instead.