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