Skip to content

Commit

Permalink
Merge pull request #3278 from Sonicadvance1/fix_oversights
Browse files Browse the repository at this point in the history
FEXCore: Fixes passing arguments to ABI helpers
  • Loading branch information
alyssarosenzweig authored Nov 29, 2023
2 parents 470615b + 70191f2 commit d0f54bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions FEXCore/Source/Interface/Core/ArchHelpers/Arm64Emitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d0f54bc

Please sign in to comment.