armviz

SPSR_EL2

64-bitTrap

The processor state to restore when returning from an exception at EL2: which stack pointer, which exception mask bits were set, and the mode to return to. The saved PC lives in the matching ELR, not here.

Field layout

63:62
61
60
I[59:56]59:56
F[55:48]55:48
47
46:44
43
42
—
PSTATE[31:0]31: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:62M[63:62]20x0

Mode to return to. The only value a handler returns with is user, meaning return to EL0 unless the handler says otherwise.

61D[61]10x0

Process state was AArch32.

60A[60]10x0

Instruction state was AArch32.

59:56I[59:56]40x0

Which of the four exception masks were active.

55:48F[55:48]80x0 (0)

Reserved.

47N[47]10x0

Condition flags were valid on entry.

46:44Z[46:44]30x0

Reserved.

43C[43]10x0

Carry clear.

42V[42]10x0

Overflow clear.

41:32—10Not assigned to a documented field. Values written here are reserved and should be treated as read-as-zero unless the architecture says otherwise.
31:0PSTATE[31:0]320x0 (0)

The PSTATE fields this register mirrors, including the interrupt mask bits in the top nibble.