Merge pull request #6856 from lioncash/cached-hook PowerPC: Factor common part of function hooking code out of the interpreter and JITs