mnscratch

Machine Scratch Register

Scratch register for software use in NMI / double trap. Bits are not interpreted by hardware.

Attributes

Requirement

Defining extensions

Smrnmi

Resumable Non-Maskable Interrupts

CSR Address

0x740

Length

* 32 when CSR[misa].MXL == 0 * 64 when CSR[misa].MXL == 1

Privilege Mode

M

Format

This CSR format changes dynamically.

mnscratch Format when CSR[misa].MXL == 0
Figure 1. mnscratch Format when CSR[misa].MXL == 0
mnscratch Format when CSR[misa].MXL == 1
Figure 2. mnscratch Format when CSR[misa].MXL == 1

Field Summary

Name Location Type Reset Value

mnscratch.SCRATCH

* 31:0 when CSR[misa].MXL == 0 * 63:0 when CSR[misa].MXL == 1

RW

UNDEFINED_LEGAL

Fields

SCRATCH

Location
  • 31:0 when CSR[misa].MXL == 0

  • 63:0 when CSR[misa].MXL == 1

Description

Scratch value

Type

RW

Reset value

UNDEFINED_LEGAL