Webcentive RISC-V Reference

sctrctl

Supervisor Control Transfer Records Control Register

Address
0x14E
Group
Supervisor-level CSRs
Privilege
SRW (privileged spec CSR listing, Supervisor Control Transfer Records Configuration)
Access
read/write; lowest privilege S (supervisor)
Address range
Standard read/write
Name in riscv-unified-db
Supervisor Control Transfer Records Control Register

Privileged spec: Supervisor Control Transfer Records Control Register

Description

The sctrctl register enables and configures the Control Transfer Records capability in S mode.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
U0RW

Enable transfer recording in the User mode.

S1RW

Enable transfer recording in the Supervisor mode.

RASEMU7RW

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

STE8RW

Enables recording of traps to S-mode when S=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