Browse Source

m68k: plain 68000 also needs extra handling for large offsets

git-svn-id: trunk@28423 -
Károly Balogh 11 years ago
parent
commit
ccc9bc0941
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/m68k/rgcpu.pas

+ 2 - 2
compiler/m68k/rgcpu.pas

@@ -60,7 +60,7 @@ unit rgcpu;
         helplist : tasmlist;
         helplist : tasmlist;
         hreg     : tregister;
         hreg     : tregister;
       begin
       begin
-        if (abs(spilltemp.offset)>32767) and (current_settings.cputype in cpu_coldfire) then
+        if (abs(spilltemp.offset)>32767) and (current_settings.cputype in (cpu_coldfire + [cpu_mc68000])) then
           begin
           begin
             helplist:=tasmlist.create;
             helplist:=tasmlist.create;
 
 
@@ -92,7 +92,7 @@ unit rgcpu;
         helplist : tasmlist;
         helplist : tasmlist;
         hreg     : tregister;
         hreg     : tregister;
       begin
       begin
-        if (abs(spilltemp.offset)>32767) and (current_settings.cputype in cpu_coldfire) then
+        if (abs(spilltemp.offset)>32767) and (current_settings.cputype in (cpu_coldfire + [cpu_mc68000])) then
           begin
           begin
             helplist:=tasmlist.create;
             helplist:=tasmlist.create;