mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 21:50:18 +02:00
Fix default CPUs for riscv32
git-svn-id: trunk@39819 -
This commit is contained in:
parent
10f72ba2c8
commit
578e60e6ef
@ -4156,10 +4156,17 @@ begin
|
|||||||
if (target_info.abi = abi_riscv_hf) then
|
if (target_info.abi = abi_riscv_hf) then
|
||||||
{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
|
{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
|
||||||
begin
|
begin
|
||||||
|
{$ifdef riscv32}
|
||||||
|
if not option.CPUSetExplicitly then
|
||||||
|
init_settings.cputype:=cpu_rv32imafd;
|
||||||
|
if not option.OptCPUSetExplicitly then
|
||||||
|
init_settings.optimizecputype:=cpu_rv32imafd;
|
||||||
|
{$else}
|
||||||
if not option.CPUSetExplicitly then
|
if not option.CPUSetExplicitly then
|
||||||
init_settings.cputype:=cpu_rv64imafdc;
|
init_settings.cputype:=cpu_rv64imafdc;
|
||||||
if not option.OptCPUSetExplicitly then
|
if not option.OptCPUSetExplicitly then
|
||||||
init_settings.optimizecputype:=cpu_rv64imafdc;
|
init_settings.optimizecputype:=cpu_rv64imafdc;
|
||||||
|
{$endif}
|
||||||
|
|
||||||
{ Set FPU type }
|
{ Set FPU type }
|
||||||
if not(option.FPUSetExplicitly) then
|
if not(option.FPUSetExplicitly) then
|
||||||
|
Loading…
Reference in New Issue
Block a user