RISC-V ISA Explorer · Traps
Smctr: Control Transfer Records (M)
Ratified 2024-11 · version 1.0.0
Machine-mode half of control transfer records: logs recent branches, jumps, traps and returns for profiling.
Typical use: Hardware CFI logs (M)
Open Smctr in the explorerDependencies
Requires
Instructions (1)
| Mnemonic | Name | Encoding | Match | Mask |
|---|---|---|---|---|
SCTRCLR | Supervisor Control Transfer Record (CTR) clear | 00010000010000000000000001110011 | 0x10400073 | 0xffffffff |
Control and status registers (3)
| Name | Address | Mode | Description |
|---|---|---|---|
mctrctl | 0x34e | M | Machine Control Transfer Records Control Register |
sctrctl | 0x14e | S | Supervisor Control Transfer Records Control Register |
vsctrctl | 0x24e | VS | Virtual Supervisor Control Transfer Records Control Register |