m68k: atari syscalls might also destroy D2 and A2

git-svn-id: trunk@45469 -
This commit is contained in:
Károly Balogh 2020-05-23 11:13:07 +00:00
parent 60d4363f47
commit 58af742f3a

View File

@ -83,7 +83,8 @@ unit cpupara;
begin
{ d0 and d1 are considered volatile }
Result:=VOLATILE_INTREGISTERS;
if target_info.system in [system_m68k_palmos] then
if (target_info.system in [system_m68k_palmos]) or
((target_info.system in [system_m68k_atari]) and (calloption in [pocall_syscall])) then
include(result,RS_D2);
end;
@ -92,7 +93,8 @@ unit cpupara;
begin
{ a0 and a1 are considered volatile }
Result:=VOLATILE_ADDRESSREGISTERS;
if target_info.system in [system_m68k_palmos] then
if (target_info.system in [system_m68k_palmos]) or
((target_info.system in [system_m68k_atari]) and (calloption in [pocall_syscall])) then
include(result,RS_A2);
end;