mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Jit64: Fix possibly redundant MOV in ABI_CallFunctionPR().
This commit is contained in:
@ -1106,7 +1106,8 @@ public:
|
|||||||
template <typename FunctionPointer>
|
template <typename FunctionPointer>
|
||||||
void ABI_CallFunctionPR(FunctionPointer func, const void* ptr, X64Reg reg1)
|
void ABI_CallFunctionPR(FunctionPointer func, const void* ptr, X64Reg reg1)
|
||||||
{
|
{
|
||||||
MOV(64, R(ABI_PARAM2), R(reg1));
|
if (reg1 != ABI_PARAM2)
|
||||||
|
MOV(64, R(ABI_PARAM2), R(reg1));
|
||||||
MOV(64, R(ABI_PARAM1), Imm64(reinterpret_cast<u64>(ptr)));
|
MOV(64, R(ABI_PARAM1), Imm64(reinterpret_cast<u64>(ptr)));
|
||||||
ABI_CallFunction(func);
|
ABI_CallFunction(func);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user