← Home

mctrctl

Machine Control Transfer Records Control Register

Address: 0x34E (846) · Privilege: M · Length: 64 · Writable · Defined by: Smctr

The `mctrctl` register enables and configures the Control Transfer Records capability in M mode.

Fields

63:5655:4847:4039:3231:2423:1615:87:0
CUSTOM—DIRLJMPINHINDLJMPINHRETINHCORSWAPINHDIRJMPINHINDJMPINHDIRCALLINHINDCALLINH—TKBRINHNTBRENTRETINHINTRINHEXCINH—LCOFIFRZBPFRZ—MTESTERASEMU—MSU
BitsFieldAliasDescriptionTypeReset
[0]UEnable transfer recording in the User mode.RWUNDEFINED_LEGAL
[1]SEnable transfer recording in the Supervisor mode.RWUNDEFINED_LEGAL
[2]MEnable transfer recording in the Machine mode.RWUNDEFINED_LEGAL
[7]RASEMUWhen set, it enables RAS (Return Address Stack) Emulation Mode.RWUNDEFINED_LEGAL
[8]STEEnables recording of traps to S-mode when S=0.RWUNDEFINED_LEGAL
[9]MTEEnables recording of traps to M-mode when M=0.RWUNDEFINED_LEGAL
[11]BPFRZSet `sctrstatus.FROZEN` on a breakpoint exception that traps to M or S mode.RWUNDEFINED_LEGAL
[12]LCOFIFRZSet `sctrstatus.FROZEN` on local-counter-overflow interrupt (LCOFI) that traps to M or S mode.RWUNDEFINED_LEGAL
[33]EXCINHWhen set, it inhibits recording of exceptions.RWUNDEFINED_LEGAL
[34]INTRINHWhen set, it inhibits recording of interrupts.RWUNDEFINED_LEGAL
[35]TRETINHWhen set, it inhibits recording of trap returns.RWUNDEFINED_LEGAL
[36]NTBRENWhen set, it enables recording of not-taken branches.RWUNDEFINED_LEGAL
[37]TKBRINHWhen set, it inhibits recording of taken branches.RWUNDEFINED_LEGAL
[40]INDCALLINHWhen set, it inhibits recording of indirect calls.RWUNDEFINED_LEGAL
[41]DIRCALLINHWhen set, it inhibits recording of direct calls.RWUNDEFINED_LEGAL
[42]INDJMPINHWhen set, it inhibits recording of indirect jumps (without linkage).RWUNDEFINED_LEGAL
[43]DIRJMPINHWhen set, it inhibits recording of direct jumps (without linkage).RWUNDEFINED_LEGAL
[44]CORSWAPINHWhen set, it inhibits recording of co-routine swaps.RWUNDEFINED_LEGAL
[45]RETINHWhen set, it inhibits recording of function returns.RWUNDEFINED_LEGAL
[46]INDLJMPINHWhen set, it inhibits recording of other indirect jumps (with linkage).RWUNDEFINED_LEGAL
[47]DIRLJMPINHWhen set, it inhibits recording of other direct jumps (with linkage).RWUNDEFINED_LEGAL
[63:60]CUSTOMWARL bits designated for custom use. The value 0 must correspond to standard behavior.RWUNDEFINED_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.