mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
PowerPC/MMU: Refactor to class, move to System.
This commit is contained in:
@ -1137,6 +1137,17 @@ public:
|
||||
ABI_CallFunction(func);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user