Machine Control Transfer Records Control Register
The `mctrctl` register enables and configures the Control Transfer Records capability in M mode.
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CUSTOM | — | DIRLJMPINH | INDLJMPINH | RETINH | CORSWAPINH | DIRJMPINH | INDJMPINH | DIRCALLINH | INDCALLINH | — | TKBRINH | NTBREN | TRETINH | INTRINH | EXCINH | — | LCOFIFRZ | BPFRZ | — | MTE | STE | RASEMU | — | M | S | U | |||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [0] | U | Enable transfer recording in the User mode. | RW | UNDEFINED_LEGAL | |
| [1] | S | Enable transfer recording in the Supervisor mode. | RW | UNDEFINED_LEGAL | |
| [2] | M | Enable transfer recording in the Machine mode. | RW | UNDEFINED_LEGAL | |
| [7] | RASEMU | When set, it enables RAS (Return Address Stack) Emulation Mode. | RW | UNDEFINED_LEGAL | |
| [8] | STE | Enables recording of traps to S-mode when S=0. | RW | UNDEFINED_LEGAL | |
| [9] | MTE | Enables recording of traps to M-mode when M=0. | RW | UNDEFINED_LEGAL | |
| [11] | BPFRZ | Set `sctrstatus.FROZEN` on a breakpoint exception that traps to M or S mode. | RW | UNDEFINED_LEGAL | |
| [12] | LCOFIFRZ | Set `sctrstatus.FROZEN` on local-counter-overflow interrupt (LCOFI) that traps to M or S mode. | RW | UNDEFINED_LEGAL | |
| [33] | EXCINH | When set, it inhibits recording of exceptions. | RW | UNDEFINED_LEGAL | |
| [34] | INTRINH | When set, it inhibits recording of interrupts. | RW | UNDEFINED_LEGAL | |
| [35] | TRETINH | When set, it inhibits recording of trap returns. | RW | UNDEFINED_LEGAL | |
| [36] | NTBREN | When set, it enables recording of not-taken branches. | RW | UNDEFINED_LEGAL | |
| [37] | TKBRINH | When set, it inhibits recording of taken branches. | RW | UNDEFINED_LEGAL | |
| [40] | INDCALLINH | When set, it inhibits recording of indirect calls. | RW | UNDEFINED_LEGAL | |
| [41] | DIRCALLINH | When set, it inhibits recording of direct calls. | RW | UNDEFINED_LEGAL | |
| [42] | INDJMPINH | When set, it inhibits recording of indirect jumps (without linkage). | RW | UNDEFINED_LEGAL | |
| [43] | DIRJMPINH | When set, it inhibits recording of direct jumps (without linkage). | RW | UNDEFINED_LEGAL | |
| [44] | CORSWAPINH | When set, it inhibits recording of co-routine swaps. | RW | UNDEFINED_LEGAL | |
| [45] | RETINH | When set, it inhibits recording of function returns. | RW | UNDEFINED_LEGAL | |
| [46] | INDLJMPINH | When set, it inhibits recording of other indirect jumps (with linkage). | RW | UNDEFINED_LEGAL | |
| [47] | DIRLJMPINH | When set, it inhibits recording of other direct jumps (with linkage). | RW | UNDEFINED_LEGAL | |
| [63:60] | CUSTOM | WARL bits designated for custom use. The value 0 must correspond to standard behavior. | RW | UNDEFINED_LEGAL |
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.