I am new to ARMv8 architecture. I have following basic questions on my mind:
How do I know what is the current execution mode AArch32 or AArch64? Should I r
#ifdef) through compiler provided macros like the ones provided by armclang: __aarch64__ for 64 bit, __arm__ for 32 bitMRS , CPSR read the current state into register number n. Then extract bits 3:0 that contain the current mode.MRS , CurrentEL read the current EL into register number n