This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can i get cpu run state aarch64 or aarch32 fo cortex a57?

i wang to get cpu run state aarch64 or aarch32? is there ang regisister can ?cpu is cortex a57 series

Parents
  • When taking an exception, the processor state is stored in the relevant Saved Program Status
    Register (SPSR), in a similar way to the CPSR in ARMv7. The SPSR holds the value of PSTATE
    before taking an exception and is used to restore the value of PSTATE when executing an
    exception 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.

Reply
  • When taking an exception, the processor state is stored in the relevant Saved Program Status
    Register (SPSR), in a similar way to the CPSR in ARMv7. The SPSR holds the value of PSTATE
    before taking an exception and is used to restore the value of PSTATE when executing an
    exception 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.

Children
No data