Webcentive RISC-V Reference

mctrctl

Machine Control Transfer Records Control Register

Address
0x34E
Group
Machine-level CSRs
Privilege
MRW (privileged spec CSR listing, Machine Control Transfer Records Configuration)
Access
read/write; lowest privilege M (machine)
Address range
Standard read/write
Name in riscv-unified-db
Machine Control Transfer Records Control Register

Privileged spec: Machine Control Transfer Records Control Register

Description

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

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
U0RW

Enable transfer recording in the User mode.

S1RW

Enable transfer recording in the Supervisor mode.

M2RW

Enable transfer recording in the Machine mode.

RASEMU7RW

When set, it enables RAS (Return Address Stack) Emulation Mode.

STE8RW

Enables recording of traps to S-mode when S=0.

MTE9RW

Enables recording of traps to M-mode when M=0.

BPFRZ11RW

Set sctrstatus.FROZEN on a breakpoint exception that traps to M or S mode.

LCOFIFRZ12RW

Set sctrstatus.FROZEN on local-counter-overflow interrupt (LCOFI) that traps to M or S mode.

EXCINH33RW

When set, it inhibits recording of exceptions.

INTRINH34RW

When set, it inhibits recording of interrupts.

TRETINH35RW

When set, it inhibits recording of trap returns.

NTBREN36RW

When set, it enables recording of not-taken branches.

TKBRINH37RW

When set, it inhibits recording of taken branches.

INDCALLINH40RW

When set, it inhibits recording of indirect calls.

DIRCALLINH41RW

When set, it inhibits recording of direct calls.

INDJMPINH42RW

When set, it inhibits recording of indirect jumps (without linkage).

DIRJMPINH43RW

When set, it inhibits recording of direct jumps (without linkage).

CORSWAPINH44RW

When set, it inhibits recording of co-routine swaps.

RETINH45RW

When set, it inhibits recording of function returns.

INDLJMPINH46RW

When set, it inhibits recording of other indirect jumps (with linkage).

DIRLJMPINH47RW

When set, it inhibits recording of other direct jumps (with linkage).

CUSTOM63-60RW

WARL bits designated for custom use. The value 0 must correspond to standard behavior.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages