Skip to content

Commit

Permalink
[ANDROID] Fix ARM JIT. Is due to Android using softfp instead of hardfp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Sep 18, 2013
1 parent 6fc2117 commit 452fd84
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -307,8 +307,13 @@ void JitArm::stfd(UGeckoInstruction inst)

MOVI2R(rA, (u32)&Memory::Write_F64);
PUSH(4, R0, R1, R2, R3);
#if !defined(__ARM_PCS_VFP) // SoftFP returns in R0 and R1
VMOV(R0, v0);
MOV(R2, rB);
#else
VMOV(D0, v0);
MOV(R0, rB);
#endif

BL(rA);

Expand All @@ -321,7 +326,6 @@ void JitArm::stfdu(UGeckoInstruction inst)
{
INSTRUCTION_START
JITDISABLE(bJITLoadStoreFloatingOff)

ARMReg RA = gpr.R(inst.RA);
ARMReg rA = gpr.GetReg();
ARMReg rB = gpr.GetReg();
Expand All @@ -339,8 +343,13 @@ void JitArm::stfdu(UGeckoInstruction inst)

MOVI2R(rA, (u32)&Memory::Write_F64);
PUSH(4, R0, R1, R2, R3);
#if !defined(__ARM_PCS_VFP) // SoftFP returns in R0 and R1
VMOV(R0, v0);
MOV(R2, rB);
#else
VMOV(D0, v0);
MOV(R0, rB);
#endif

BL(rA);

Expand Down

0 comments on commit 452fd84

Please sign in to comment.