armviz

SPSR_EL1

64-bitTrap

Saved program state register: a snapshot of PSTATE taken on exception entry and restored by exception return. Together with ELR_EL1 it holds everything needed to resume the interrupted code.

Fields below bit 6 are reserved in AArch64 state; the lower part of the layout belongs to AArch32.

Field layout

—
31
30
29
28
27
24
23
22
GE[19:16]19:16
—
9
8
7
6
M[4:0]4:0
byte 7
byte 6
byte 5
byte 4
byte 3
byte 2
byte 1
byte 0

Current value hover a field to locate it

B7
B6
B5
B4
B3
B2
B1
B0

Fields

BitsFieldBitsValueDescription
63:32—32Not assigned to a documented field. Values written here are reserved and should be treated as read-as-zero unless the architecture says otherwise.
31N[31]10x0

Saved negative flag.

30Z[30]10x0

Saved zero flag.

29C[29]10x0

Saved carry flag.

28V[28]10x0

Saved overflow flag.

27Q[27]10x0

Saved saturation flag.

26:25—2Not assigned to a documented field. Values written here are reserved and should be treated as read-as-zero unless the architecture says otherwise.
24DIT[24]10x0

Saved data independent timing state, when FEAT_DIT is implemented.

23SSBS[23]10x0

Saved speculative store behaviour state.

22PAN[22]10x0

Saved privileged access never state.

21:20—2Not assigned to a documented field. Values written here are reserved and should be treated as read-as-zero unless the architecture says otherwise.
19:16GE[19:16]40x0

Saved greater-than-or-equal flags. Meaningful for AArch32 SIMD.

15:10—6Not assigned to a documented field. Values written here are reserved and should be treated as read-as-zero unless the architecture says otherwise.
9D[9]10x0

Saved process state abort mask.

8A[8]10x0

Saved SError interrupt mask.

7I[7]10x0

Saved IRQ mask.

6F[6]10x0

Saved FIQ mask.

5—1Not assigned to a documented field. Values written here are reserved and should be treated as read-as-zero unless the architecture says otherwise.
4:0M[4:0]50x0 (0)

The stack pointer selection that was in force. In AArch64 the value 5 selects SP_EL0, and every other encoding selects SP_ELx for the level being returned from.