瀏覽代碼

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

git-svn-id: trunk@39849 -
pierre 6 年之前
父節點
當前提交
0e0b43889f
共有 1 個文件被更改,包括 4 次插入1 次删除
  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