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 >= S@1.11.0

CSR Address

0x100

Length

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

Privilege Mode

S

Format

This CSR format changes dynamically.

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

Field Summary

Name Location Type Reset Value

sstatus.SD

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

RO-H

UNDEFINED_LEGAL

sstatus.UXL

33:32

RO

UNDEFINED_LEGAL

sstatus.MXR

19

RW

UNDEFINED_LEGAL

sstatus.SUM

18

RW

UNDEFINED_LEGAL

sstatus.XS

16:15

RO

UNDEFINED_LEGAL

sstatus.FS

14:13

RW-H

UNDEFINED_LEGAL

sstatus.VS

10:9

RW-H

UNDEFINED_LEGAL

sstatus.SPP

8

RW-H

UNDEFINED_LEGAL

sstatus.UBE

6

RO

UNDEFINED_LEGAL

sstatus.SPIE

5

RW-H

UNDEFINED_LEGAL

sstatus.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

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