m68k: fix frame pointer register on atari, and a few other non-amiga systems

git-svn-id: trunk@35204 -
This commit is contained in:
Károly Balogh 2016-12-27 17:09:06 +00:00
parent e6029140eb
commit 35ddac66fc
2 changed files with 2 additions and 7 deletions

View File

@ -46,8 +46,7 @@ unit cpupi;
procedure tcpuprocinfo.init_framepointer;
begin
{ ToDo : what about system_m68k_embedded? }
if target_info.system in [system_m68k_linux,system_m68k_netbsd,system_m68k_openbsd] then
if not (target_info.system in [system_m68k_amiga]) then
begin
RS_FRAME_POINTER_REG:=RS_A6;
NR_FRAME_POINTER_REG:=NR_A6;

View File

@ -87,11 +87,7 @@ procedure fpc_cpuinit;
{$define FPC_SYSTEM_HAS_GET_FRAME}
function get_frame : pointer; assembler;nostackframe;
asm
{$if defined(amiga)}
move.l a5,d0
{$else}
move.l a6,d0
{$endif}
move.l fp,d0
end;