Webcentive RISC-V Reference

mscratch

Machine scratch register

Address
0x340
Group
Machine-level CSRs
Privilege
MRW (privileged spec CSR listing, Machine Trap Handling)
Access
read/write; lowest privilege M (machine)
Address range
Standard read/write
Name in riscv-unified-db
Machine Scratch Register

Privileged spec: Machine scratch register

Description

Scratch register for software use. Bits are not interpreted by hardware.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
SCRATCHRV32 31-0 / RV64 63-0RW

Scratch value

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

Specification and related pages