From 70191f2d2876c2e541537332b06db27349a956c3 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 19 Nov 2023 02:15:45 -0800 Subject: [PATCH] FEXCore: Fixes passing arguments to ABI helpers Forgot to pass a few arguments through. Doesn't change behaviour since we were always passing in TMP1 and FPRs = true but this is correct. --- .../Source/Interface/Core/ArchHelpers/Arm64Emitter.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FEXCore/Source/Interface/Core/ArchHelpers/Arm64Emitter.h b/FEXCore/Source/Interface/Core/ArchHelpers/Arm64Emitter.h index dd7f87cdf2..859a3f192f 100644 --- a/FEXCore/Source/Interface/Core/ArchHelpers/Arm64Emitter.h +++ b/FEXCore/Source/Interface/Core/ArchHelpers/Arm64Emitter.h @@ -132,21 +132,21 @@ class Arm64Emitter : public FEXCore::ARMEmitter::Emitter { void SpillForABICall(bool SupportsPreserveAllABI, FEXCore::ARMEmitter::Register TmpReg, bool FPRs = true) { if (SupportsPreserveAllABI) { - SpillForPreserveAllABICall(TMP1, true); + SpillForPreserveAllABICall(TmpReg, FPRs); } else { - SpillStaticRegs(TMP1); - PushDynamicRegsAndLR(TMP1); + SpillStaticRegs(TmpReg, FPRs); + PushDynamicRegsAndLR(TmpReg); } } void FillForABICall(bool SupportsPreserveAllABI, bool FPRs = true) { if (SupportsPreserveAllABI) { - FillForPreserveAllABICall(true); + FillForPreserveAllABICall(FPRs); } else { PopDynamicRegsAndLR(); - FillStaticRegs(); + FillStaticRegs(FPRs); } }