mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 12:30:42 +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
|
||||
{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
|
||||
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
|
||||
init_settings.cputype:=cpu_rv64imafdc;
|
||||
if not option.OptCPUSetExplicitly then
|
||||
init_settings.optimizecputype:=cpu_rv64imafdc;
|
||||
{$endif}
|
||||
|
||||
{ Set FPU type }
|
||||
if not(option.FPUSetExplicitly) then
|
||||
|
Loading…
Reference in New Issue
Block a user