* Xtensa: set abi correctly

git-svn-id: trunk@46485 -
This commit is contained in:
florian 2020-08-18 21:10:06 +00:00
parent a4cfade86b
commit 004ac4d1f4

View File

@ -4309,6 +4309,14 @@ begin
end;
if not(option.CPUSetExplicitly) and (target_info.system=system_xtensa_linux) then
init_settings.cputype:=cpu_lx6;
if (target_info.system in [system_xtensa_embedded,system_xtensa_freertos]) and not(option.ABISetExplicitly) then
begin
if CPUXTENSA_REGWINDOW in cpu_capabilities[init_settings.cputype] then
target_info.abi:=abi_xtensa_windowed
else
target_info.abi:=abi_xtensa_call0;
end;
{$endif xtensa}
{$ifdef arm}
@ -4624,17 +4632,6 @@ begin
end;
{$endif}
{$ifdef xtensa}
if (target_info.system=system_xtensa_embedded) and not(option.ABISetExplicitly) then
begin
if CPUXTENSA_REGWINDOW in cpu_capabilities[init_settings.cputype] then
target_info.abi:=abi_xtensa_windowed
else
target_info.abi:=abi_xtensa_call0;
end;
{$endif xtensa}
{$if defined(powerpc) or defined(powerpc64)}
{ define _CALL_ELF symbol like gcc }
case target_info.abi of