Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3718e776 authored by Arne Coucheron's avatar Arne Coucheron Committed by Steve Kondik
Browse files

debuggerd: Extend condition for exclusion of the fconstd instruction

The fconstd instruction only exists in ARM cores with VFPv3 or
later. Currently all supported ARMv6 targets do not have VFPv3 or
later, so let's just extend based on this trend.

Change-Id: Icbbaadb69564b9bab7b55fdada408247c214f038
parent cb4645d7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@
    .global crash
    .type crash, %function
crash:
#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__)
    //VFPv3 was the first to have the fconstd instruction.
#else //// defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__)

    fconstd   d0, #0
    fconstd   d1, #1
    fconstd   d2, #2
@@ -37,6 +41,7 @@ crash:
    fconstd   d30, #30
    fconstd   d31, #31
#endif
#endif // defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__)
    mov       r0, #0
    str       r0, [r0]
    bx        lr