I have a problem with switching to EL3 using Python bindings.
Tried to switch to EL3 via modifying PSTATE register and CurrentEL register, but fails.
First CODE tries to read SCR_EL3 but raises an exception unicorn.unicorn.UcError: Unhandled CPU exception (UC_ERR_EXCEPTION).
Second CODE checks current EL and jumps to the corresponding location with hook enabled.
I have a problem with switching to EL3 using Python bindings.
Tried to switch to EL3 via modifying
PSTATE
register andCurrentEL
register, but fails. FirstCODE
tries to readSCR_EL3
but raises an exceptionunicorn.unicorn.UcError: Unhandled CPU exception (UC_ERR_EXCEPTION)
. SecondCODE
checks current EL and jumps to the corresponding location with hook enabled.My output:
Here is the code: