From 8dabd1a0256e4761ad88494280d74397e16af9f5 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 12 Mar 2023 20:31:10 +0100 Subject: PowerPC/MMU: Refactor to class, move to System. --- Source/Core/Common/x64Emitter.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/Core/Common') diff --git a/Source/Core/Common/x64Emitter.h b/Source/Core/Common/x64Emitter.h index d027a1a9ef..6bf034b455 100644 --- a/Source/Core/Common/x64Emitter.h +++ b/Source/Core/Common/x64Emitter.h @@ -1137,6 +1137,17 @@ public: ABI_CallFunction(func); } + template + void ABI_CallFunctionPAC(int bits, FunctionPointer func, const void* ptr1, const Gen::OpArg& arg2, + u32 param3) + { + if (!arg2.IsSimpleReg(ABI_PARAM2)) + MOV(bits, R(ABI_PARAM2), arg2); + MOV(32, R(ABI_PARAM3), Imm32(param3)); + MOV(64, R(ABI_PARAM1), Imm64(reinterpret_cast(ptr1))); + ABI_CallFunction(func); + } + template void ABI_CallFunctionA(int bits, FunctionPointer func, const Gen::OpArg& arg1) { -- cgit v1.2.3