Hi,
I'm emulating some ARM firmware code and noticed that unicorn can not emulate 'msr' or 'mrs' and other 'platform specific' instructions. My solution is to use hook UC_HOOK_INSN_INVALID, and inside of the hook function, I manually emulate the behavior of these instructions, and adjust pc to skip them. However, even if I return "true" from the hook function, the emulation still throws UC_ERR_EXCEPTION. Is there a way to avoid execution flow interruption because of this?
I'm using unicorn-2.1.1 with python binding.