Skip to content

Commit 26e7a08

Browse files
arcormcc
authored andcommitted
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
1 parent 4407014 commit 26e7a08

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

debuggerd/vfp.S

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
.global crash
44
.type crash, %function
55
crash:
6+
#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__)
7+
//VFPv3 was the first to have the fconstd instruction.
8+
#else //// defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__)
9+
610
fconstd d0, #0
711
fconstd d1, #1
812
fconstd d2, #2
@@ -37,6 +41,7 @@ crash:
3741
fconstd d30, #30
3842
fconstd d31, #31
3943
#endif
44+
#endif // defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__)
4045
mov r0, #0
4146
str r0, [r0]
4247
bx lr

0 commit comments

Comments
 (0)