mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
PowerPC/MMU: Refactor to class, move to System.
This commit is contained in:
parent
012044eb64
commit
8dabd1a025
51 changed files with 1314 additions and 1149 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue