void Jit::CallProtectedFunction(const void *func, const u32 arg1, const u32 arg2, const u32 arg3) { // On x64, we need to save R8, which is caller saved. thunks.Enter(this); ABI_CallFunctionCCC(func, arg1, arg2, arg3); thunks.Leave(this); }
void Jit::CallProtectedFunction(void *func, const u32 arg1, const u32 arg2, const u32 arg3) { // On x64, we need to save R8, which is caller saved. ABI_CallFunction((void *)thunks.GetSaveRegsFunction()); ABI_CallFunctionCCC(func, arg1, arg2, arg3); ABI_CallFunction((void *)thunks.GetLoadRegsFunction()); }