aarch64 PSTATE and SPSR

(only for) when exception taken from AArch64 state:

SPSR_ELxPSTATENOTE
[63:32]-RESERVED 0
31N
30Z
29C
28V
[27:26]-RESERVED 0
25TCOFEAT_MTE
24DITFEAT_DIT
23UAOFEAT_UAO
22PANFEAT_PAN
21SS
20IL
[19:13]N/ARESERVED 0
12SSBS
[11:10]BTYPE [1:0]FEAT_BTI
9D
8A
7I
6F
5-RESERVED 0
4M [4]
[3:0]M [3:0]

general PSTATE bits NOTE: PSTATE is not a register. Also not all fields are preserved in the SPSR_ELx when an excaption is taken.

NAMEDESC
NZCVALU Condition {Neg, Zero, Carry, oVerflow}
DAIFmask bits {Debug, sError, IRQ, FIQ}
SSSoftware Step
ILillegal execution state
EL(2)exception level
nRWexecution state (0=64, 1=32)
SPstack pointer selector (0=SP_EL0, 1=SP_ELn)

feature PSTATE bits (TODO)