浏览代码

* Xtensa: set fpu type dependending on the controller

git-svn-id: trunk@44495 -
florian 5 年之前
父节点
当前提交
ba9e930556
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      compiler/options.pas

+ 6 - 2
compiler/options.pas

@@ -4238,8 +4238,7 @@ begin
      ((target_info.system in [system_arm_wince,system_arm_gba,
      ((target_info.system in [system_arm_wince,system_arm_gba,
          system_m68k_amiga,system_m68k_atari,
          system_m68k_amiga,system_m68k_atari,
          system_arm_nds,system_arm_embedded,
          system_arm_nds,system_arm_embedded,
-         system_riscv32_embedded,system_riscv64_embedded,system_xtensa_embedded,
-         system_xtensa_freertos])
+         system_riscv32_embedded,system_riscv64_embedded,system_xtensa_embedded])
 {$ifdef arm}
 {$ifdef arm}
       or (target_info.abi=abi_eabi)
       or (target_info.abi=abi_eabi)
 {$endif arm}
 {$endif arm}
@@ -4274,6 +4273,11 @@ begin
   end;
   end;
 {$endif i386}
 {$endif i386}
 
 
+{$ifdef xtensa}
+  if not(option.FPUSetExplicitly) then
+    init_settings.fputype:=embedded_controllers[init_settings.controllertype].fputype;
+{$endif xtensa}
+
 {$ifdef arm}
 {$ifdef arm}
   case target_info.system of
   case target_info.system of
     system_arm_darwin:
     system_arm_darwin: