mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 09:29:35 +02:00
m68k: also handle large register save/restore offsets on 68000
git-svn-id: trunk@33808 -
This commit is contained in:
parent
0dd5beb064
commit
62e0eab89b
@ -1967,7 +1967,7 @@ unit cgcpu;
|
||||
{ Copy registers to temp }
|
||||
{ NOTE: virtual registers allocated here won't be translated --> no higher-level stuff. }
|
||||
href:=current_procinfo.save_regs_ref;
|
||||
if (href.offset<low(smallint)) and (current_settings.cputype in cpu_coldfire) then
|
||||
if (href.offset<low(smallint)) and (current_settings.cputype in cpu_coldfire+[cpu_mc68000]) then
|
||||
begin
|
||||
list.concat(taicpu.op_reg_reg(A_MOVE,S_L,href.base,NR_A0));
|
||||
list.concat(taicpu.op_const_reg(A_ADDA,S_L,href.offset,NR_A0));
|
||||
@ -2055,7 +2055,7 @@ unit cgcpu;
|
||||
|
||||
{ Restore registers from temp }
|
||||
href:=current_procinfo.save_regs_ref;
|
||||
if (href.offset<low(smallint)) and (current_settings.cputype in cpu_coldfire) then
|
||||
if (href.offset<low(smallint)) and (current_settings.cputype in cpu_coldfire+[cpu_mc68000]) then
|
||||
begin
|
||||
list.concat(taicpu.op_reg_reg(A_MOVE,S_L,href.base,NR_A0));
|
||||
list.concat(taicpu.op_const_reg(A_ADDA,S_L,href.offset,NR_A0));
|
||||
|
Loading…
Reference in New Issue
Block a user