mctrctl
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
MSmctrSummary
The mctrctl register enables and configures the Control Transfer Records capability in M mode.
Syntax / Encoding
CSR 0x34e (M-mode, RW)
Bitfields (22)
| 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 M or S mode. |
11 | BPFRZ | Set sctrstatus.FROZEN on a breakpoint exception that traps to M or S mode. |
9 | MTE | Enables recording of traps to M-mode when M=0. |
8 | STE | Enables recording of traps to S-mode when S=0. |
7 | RASEMU | When set, it enables RAS (Return Address Stack) Emulation Mode. |
2 | M | Enable transfer recording in the Machine mode. |
1 | S | Enable transfer recording in the Supervisor mode. |
0 | U | Enable transfer recording in the User mode. |