Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index 7a65ab25cb745beafe7a371079440b2593a2753b..051eb72ec2afee0c4fcb0a1a9644994df3b18c55 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -77,6 +77,9 @@ static unsigned CpuFeaturesImpliedByCompiler() { |
#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) |
// && !defined(__SOFTFP__) |
#endif // _arm__ |
+ if (answer & (1u << ARMv7)) { |
+ answer |= 1u << UNALIGNED_ACCESSES; |
+ } |
return answer; |
} |
@@ -133,6 +136,10 @@ void CpuFeatures::Probe() { |
found_by_runtime_probing_ |= 1u << SUDIV; |
} |
+ if (!IsSupported(UNALIGNED_ACCESSES) && OS::ArmCpuHasFeature(ARMv7)) { |
+ found_by_runtime_probing_ |= 1u << UNALIGNED_ACCESSES; |
+ } |
+ |
supported_ |= found_by_runtime_probing_; |
#endif |