i wang to get cpu run state aarch64 or aarch32? is there ang regisister can ?cpu is cortex a57 series
When taking an exception, the processor state is stored in the relevant Saved Program StatusRegister (SPSR), in a similar way to the CPSR in ARMv7. The SPSR holds the value of PSTATEbefore taking an exception and is used to restore the value of PSTATE when executing anexception return.
by this i can read spsr,but when switch from el3 to el2 ,pstate is save to spsr_el3, i can not access spsr_el3 when i in el2.