Add hooks for dynarec - not yet finished