reformat code with more typedefs.
* fix helper function calls * cmp hooks: support for new x86 decoder
* Add cpu_run pre/post exec hooks, to hook the cpu just before / after it runs target code. * Refactor hooks to separate them in different files * Remove most extern variables * Reduce the amount of extra code in QEMU * Add clang-format script