diff options
| author | JosJuice <josjuice@gmail.com> | 2023-04-01 18:02:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 18:02:04 +0200 |
| commit | 450ca0b69ea70f56e25670040f1dfdc01bf52ba9 (patch) | |
| tree | 061833f63b86e19169024afd9ca8179ecaff066f /Source/Core/Common | |
| parent | 7e9a63b9873d56f0a2c1b814a04437374621fb24 (diff) | |
| parent | 8dabd1a0256e4761ad88494280d74397e16af9f5 (diff) | |
Merge pull request #11700 from AdmiralCurtiss/mmu-class
PowerPC/MMU: Refactor to class, move to System.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/x64Emitter.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -1138,6 +1138,17 @@ public: } template <typename FunctionPointer> + 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<u64>(ptr1))); + ABI_CallFunction(func); + } + + template <typename FunctionPointer> void ABI_CallFunctionA(int bits, FunctionPointer func, const Gen::OpArg& arg1) { if (!arg1.IsSimpleReg(ABI_PARAM1)) |
