mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:29:26 +02:00
* Xtensa: set abi correctly
git-svn-id: trunk@46485 -
This commit is contained in:
parent
a4cfade86b
commit
004ac4d1f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user