vsctrctl
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
VSH, SsctrSummary
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)
| Bits | Field | Description |
|---|---|---|
63:60 | CUSTOM | WARL bits designated for custom use. The value 0 must correspond to standard behavior. |
47 | DIRLJMPINH | When set, it inhibits recording of other direct jumps (with linkage). |
46 | INDLJMPINH | When set, it inhibits recording of other indirect jumps (with linkage). |
45 | RETINH | When set, it inhibits recording of function returns. |
44 | CORSWAPINH | When set, it inhibits recording of co-routine swaps. |
43 | DIRJMPINH | When set, it inhibits recording of direct jumps (without linkage). |
42 | INDJMPINH | When set, it inhibits recording of indirect jumps (without linkage). |
41 | DIRCALLINH | When set, it inhibits recording of direct calls. |
40 | INDCALLINH | When set, it inhibits recording of indirect calls. |
37 | TKBRINH | When set, it inhibits recording of taken branches. |
36 | NTBREN | When set, it enables recording of not-taken branches. |
35 | TRETINH | When set, it inhibits recording of trap returns. |
34 | INTRINH | When set, it inhibits recording of interrupts. |
33 | EXCINH | When set, it inhibits recording of exceptions. |
12 | LCOFIFRZ | Set sctrstatus.FROZEN on local-counter-overflow interrupt (LCOFI) that traps to VS mode. |
11 | BPFRZ | Set sctrstatus.FROZEN on a breakpoint exception that traps to VS mode. |
8 | STE | Enables recording of traps to VS-mode when S=0. |
7 | RASEMU | When set, it enables RAS (Return Address Stack) Emulation Mode. |
1 | S | Enable transfer recording in the VS mode. |
0 | U | Enable 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.