mscratch

Machine Scratch Register

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

Attributes

CSR Address

0x340

Defining extension

  • Sm, version >= 0

Length

64-bit

Privilege Mode

M

Format

mscratch format
Figure 1. mscratch format

Field Summary

Name Location Type Reset Value

SCRATCH

63:0

RW

0

Fields

SCRATCH

Location

mscratch[63:0]

Description

Scratch value

Type

RW

Read-Write

Field is writable by software. Any value that fits in the field is acceptable and shall be retained for subsequent reads.

Reset value

0