Explorar o código

* set fpu type correctly for riscv32-freertos

florian %!s(int64=2) %!d(string=hai) anos
pai
achega
978d63850f
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      compiler/options.pas

+ 6 - 1
compiler/options.pas

@@ -5136,7 +5136,12 @@ begin
 
 {$if defined(riscv32) or defined(riscv64)}
   { RISC-V defaults }
-  if (target_info.abi = abi_riscv_hf) then
+  if target_info.system = system_riscv32_freertos then
+    begin
+      if not(option.FPUSetExplicitly) then
+        init_settings.fputype:=fpu_soft;
+    end
+  else if (target_info.abi = abi_riscv_hf) then
     begin
       {$ifdef riscv32}
       if not option.CPUSetExplicitly then