diff options
author | Arne Coucheron <arco68@gmail.com> | 2011-11-30 09:14:51 +0100 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-07-10 22:45:28 +0100 |
commit | 26e7a088600ea0d540bf4f82f510a2052f3f9b1e (patch) | |
tree | fc35537c55eeb70fbce4439d2c0d227ecfba30b7 /debuggerd | |
parent | 44070145d28aae267b1c31f74d96cc2c2d4770d8 (diff) | |
download | system_core-26e7a088600ea0d540bf4f82f510a2052f3f9b1e.tar.gz system_core-26e7a088600ea0d540bf4f82f510a2052f3f9b1e.tar.bz2 system_core-26e7a088600ea0d540bf4f82f510a2052f3f9b1e.zip |
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
Diffstat (limited to 'debuggerd')
-rw-r--r-- | debuggerd/vfp.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debuggerd/vfp.S b/debuggerd/vfp.S index 9744f6f7..5ae67116 100644 --- a/debuggerd/vfp.S +++ b/debuggerd/vfp.S @@ -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 |