sstatus

Supervisor Status

The sstatus register tracks and controls the hart’s current operating state.

All fields in sstatus are aliases of the same field in mstatus.

Attributes

Defining Extension

  • S, version >= 0

CSR Address

0x100

Length

32-bit

64-bit

Privilege Mode

S

Format

This CSR format changes dynamically.

svg
svg

Field Summary

Name Location Type Reset Value

SD

31

63

RO-H

UNDEFINED_LEGAL

UXL

33:32

RO

UNDEFINED_LEGAL

MXR

19

RW

UNDEFINED_LEGAL

SUM

18

RW

UNDEFINED_LEGAL

XS

16:15

RO

UNDEFINED_LEGAL

FS

14:13

RW-H

UNDEFINED_LEGAL

VS

10:9

RW-H

UNDEFINED_LEGAL

SPP

8

RW-H

UNDEFINED_LEGAL

UBE

6

RO

UNDEFINED_LEGAL

SPIE

5

RW-H

UNDEFINED_LEGAL

SIE

1

RW-H

UNDEFINED_LEGAL

Fields

SD

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

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

Description

State Dirty

Alias of mstatus.SD.

Type

RO-H

Reset value

UNDEFINED_LEGAL

UXL

UXL is only defined in RV64 (CSR[mstatus].SXL == 1)
Location

33:32

Description

U-mode XLEN

Alias of mstatus.UXL.

Type

RO

Reset value

UNDEFINED_LEGAL

MXR

Location

19

Description

Make eXecutable Readable

Alias of mstatus.MXR.

Type

RW

Reset value

UNDEFINED_LEGAL

SUM

Location

18

Description

permit Supervisor Memory Access

Alias of mstatus.SUM.

Type

RW

Reset value

UNDEFINED_LEGAL

XS

Location

16:15

Description

Custom (X) extension context Status.

Alias of mstatus.XS.

Type

RO

Reset value

UNDEFINED_LEGAL

FS

Location

14:13

Description

Floating point context status.

Alias of mstatus.FS.

Type

RW-H

Reset value

UNDEFINED_LEGAL

VS

Location

10:9

Description

Vector context status.

Alias of mstatus.VS.

Type

RW-H

Reset value

UNDEFINED_LEGAL

SPP

Location

8

Description

S-mode Previous Privilege

Alias of mstatus.SPP.

Type

RW-H

Reset value

UNDEFINED_LEGAL

UBE

Location

6

Description

U-mode Big Endian

Alias of mstatus.UBE.

Type

RO

Reset value

UNDEFINED_LEGAL

SPIE

Location

5

Description

S-mode Previous Interrupt Enable

Alias of mstatus.SPIE.

Type

RW-H

Reset value

UNDEFINED_LEGAL

SIE

Location

1

Description

S-mode Interrupt Enable

Alias of mstatus.SIE.

Type

RW-H

Reset value

UNDEFINED_LEGAL