Restore IP register from relay function to target function