mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 05:29:22 +02:00
m68k: enable 68020 codepaths to all CPUs supporting '020 features
git-svn-id: trunk@36335 -
This commit is contained in:
parent
e9ff684ff0
commit
829b2fc3b3
@ -495,7 +495,7 @@ unit cgcpu;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ deal with large offsets on non-020+ }
|
{ deal with large offsets on non-020+ }
|
||||||
if current_settings.cputype<>cpu_MC68020 then
|
if not (current_settings.cputype in cpu_mc68020p) then
|
||||||
begin
|
begin
|
||||||
if ((ref.index<>NR_NO) and not isvalue8bit(ref.offset)) or
|
if ((ref.index<>NR_NO) and not isvalue8bit(ref.offset)) or
|
||||||
((ref.base<>NR_NO) and not isvalue16bit(ref.offset)) then
|
((ref.base<>NR_NO) and not isvalue16bit(ref.offset)) then
|
||||||
@ -1193,7 +1193,7 @@ unit cgcpu;
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
if current_settings.cputype = cpu_mc68020 then
|
if current_settings.cputype in cpu_mc68020p then
|
||||||
begin
|
begin
|
||||||
{ do the multiplication }
|
{ do the multiplication }
|
||||||
scratch_reg := force_to_dataregister(list, size, reg);
|
scratch_reg := force_to_dataregister(list, size, reg);
|
||||||
@ -1405,8 +1405,7 @@ unit cgcpu;
|
|||||||
OP_MUL,
|
OP_MUL,
|
||||||
OP_IMUL:
|
OP_IMUL:
|
||||||
begin
|
begin
|
||||||
if (current_settings.cputype <> cpu_mc68020) and
|
if not (CPUM68K_HAS_32BITMUL in cpu_capabilities[current_settings.cputype]) then
|
||||||
(not (current_settings.cputype in cpu_coldfire)) then
|
|
||||||
if op = OP_MUL then
|
if op = OP_MUL then
|
||||||
call_rtl_mul_reg_reg(list,src,dst,'fpc_mul_dword')
|
call_rtl_mul_reg_reg(list,src,dst,'fpc_mul_dword')
|
||||||
else
|
else
|
||||||
@ -1866,7 +1865,7 @@ unit cgcpu;
|
|||||||
|
|
||||||
if (parasize > 0) and not (current_procinfo.procdef.proccalloption in clearstack_pocalls) then
|
if (parasize > 0) and not (current_procinfo.procdef.proccalloption in clearstack_pocalls) then
|
||||||
begin
|
begin
|
||||||
if current_settings.cputype=cpu_mc68020 then
|
if current_settings.cputype in cpu_mc68020p then
|
||||||
list.concat(taicpu.op_const(A_RTD,S_NO,parasize))
|
list.concat(taicpu.op_const(A_RTD,S_NO,parasize))
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user