We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm debugging the ARM Cortex A53 on the QEMU emulator using gdb debugger, any idea on how to get what exception level I'm running on (EL3/2/1/0) ?
Hi Boon Khai,
gdb gets EL from CPSR bits 3:2.
(See also SPSR_EL1.M[3:2].)
CPSR 0x400003cd has indeed EL == 3,
CPSR 0x60000045 has EL == 1.
Hi Vstehle,
Got it! Thanks a lot!