mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 09:06:08 +02:00
* set FPU type properly for riscv32-freertos
This commit is contained in:
parent
f1f84a292c
commit
c7a0c0bbb4
@ -4903,14 +4903,14 @@ begin
|
|||||||
{$endif XTENSA}
|
{$endif XTENSA}
|
||||||
|
|
||||||
{$ifdef cpufpemu}
|
{$ifdef cpufpemu}
|
||||||
{ force fpu emulation on arm/wince, arm/gba, arm/embedded and arm/nds
|
{ force fpu emulation on arm/wince, arm/gba, arm/embedded and arm/nds etc.
|
||||||
if fpu type not explicitly set }
|
if fpu type not explicitly set }
|
||||||
if not(option.FPUSetExplicitly) and
|
if not(option.FPUSetExplicitly) and
|
||||||
((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_freertos,
|
system_arm_nds,system_arm_embedded,system_arm_freertos,
|
||||||
system_riscv32_embedded,system_riscv64_embedded,system_xtensa_linux,
|
system_riscv32_embedded,system_riscv64_embedded,system_xtensa_linux,
|
||||||
system_z80_embedded,system_z80_zxspectrum])
|
system_z80_embedded,system_z80_zxspectrum,system_riscv32_freertos])
|
||||||
{$ifdef arm}
|
{$ifdef arm}
|
||||||
or (target_info.abi=abi_eabi)
|
or (target_info.abi=abi_eabi)
|
||||||
{$endif arm}
|
{$endif arm}
|
||||||
@ -5087,12 +5087,7 @@ begin
|
|||||||
|
|
||||||
{$if defined(riscv32) or defined(riscv64)}
|
{$if defined(riscv32) or defined(riscv64)}
|
||||||
{ RISC-V defaults }
|
{ RISC-V defaults }
|
||||||
if target_info.system = system_riscv32_freertos then
|
if (target_info.abi = abi_riscv_hf) then
|
||||||
begin
|
|
||||||
if not(option.FPUSetExplicitly) then
|
|
||||||
init_settings.fputype:=fpu_soft;
|
|
||||||
end
|
|
||||||
else if (target_info.abi = abi_riscv_hf) then
|
|
||||||
begin
|
begin
|
||||||
{$ifdef riscv32}
|
{$ifdef riscv32}
|
||||||
if not option.CPUSetExplicitly then
|
if not option.CPUSetExplicitly then
|
||||||
|
Loading…
Reference in New Issue
Block a user