Bläddra i källkod

m68k: atari syscalls might also destroy D2 and A2

git-svn-id: trunk@45469 -
Károly Balogh 5 år sedan
förälder
incheckning
58af742f3a
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      compiler/m68k/cpupara.pas

+ 4 - 2
compiler/m68k/cpupara.pas

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