Fix default CPUs for riscv32

git-svn-id: trunk@39819 -
This commit is contained in:
pierre 2018-09-26 21:56:36 +00:00
parent 10f72ba2c8
commit 578e60e6ef

View File

@ -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