Browse Source

Use vfpv2 as default fpu for eabihf if cpu is below armv7

git-svn-id: trunk@39849 -
pierre 7 năm trước cách đây
mục cha
commit
0e0b43889f
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      compiler/options.pas

+ 4 - 1
compiler/options.pas

@@ -4122,7 +4122,10 @@ begin
       { Set FPU type }
       if not(option.FPUSetExplicitly) then
         begin
-          init_settings.fputype:=fpu_vfpv3_d16
+          if init_settings.cputype < cpu_armv7 then
+            init_settings.fputype:=fpu_vfpv2
+          else
+            init_settings.fputype:=fpu_vfpv3_d16;
         end
       else
         begin