sscratch

Supervisor Scratch Register

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

Attributes

Requirement

S

Defining extensions

S

Supervisor mode

CSR Address

0x140

Length

* 32 when CSR[mstatus].SXL == 0 * 64 when CSR[mstatus].SXL == 1

Privilege Mode

S

Format

This CSR format changes dynamically.

sscratch Format when CSR[mstatus].SXL == 0
Figure 1. sscratch Format when CSR[mstatus].SXL == 0
sscratch Format when CSR[mstatus].SXL == 1
Figure 2. sscratch Format when CSR[mstatus].SXL == 1

Field Summary

Name Location Type Reset Value

sscratch.SCRATCH

* 31:0 when CSR[mstatus].SXL == 0 * 63:0 when CSR[mstatus].SXL == 1

RW

UNDEFINED_LEGAL

Fields

SCRATCH

Location
  • 31:0 when CSR[mstatus].SXL == 0

  • 63:0 when CSR[mstatus].SXL == 1

Description

Scratch value

Type

RW

Reset value

UNDEFINED_LEGAL