Jit64: Fix possibly redundant MOV in ABI_CallFunctionPR().

This commit is contained in:
Admiral H. Curtiss 2023-04-05 20:00:37 +02:00
parent 25fba7247e
commit 2ac7b5a523
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 2 additions and 1 deletions

View File

@ -1106,6 +1106,7 @@ public:
template <typename FunctionPointer>
void ABI_CallFunctionPR(FunctionPointer func, const void* ptr, X64Reg reg1)
{
if (reg1 != ABI_PARAM2)
MOV(64, R(ABI_PARAM2), R(reg1));
MOV(64, R(ABI_PARAM1), Imm64(reinterpret_cast<u64>(ptr)));
ABI_CallFunction(func);