Browse Source

Also handle fpu_soft

git-svn-id: trunk@23178 -
pierre 12 years ago
parent
commit
2a610e74b7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      compiler/m68k/n68kcnv.pas

+ 3 - 2
compiler/m68k/n68kcnv.pas

@@ -46,7 +46,7 @@ implementation
       cgbase,pass_1,pass_2,procinfo,
       ncon,ncal,
       ncgutil,
-      cpubase,aasmcpu,
+      cpubase,cpuinfo,aasmcpu,
       rgobj,tgobj,cgobj,hlcgobj,cgutils,globtype,cgcpu;
 
 
@@ -61,7 +61,8 @@ implementation
         { In case we are in emulation mode, we must
           always call the helpers
         }
-        if (cs_fp_emulation in current_settings.moduleswitches) then
+        if (cs_fp_emulation in current_settings.moduleswitches)
+           or (current_settings.fputype=fpu_soft) then
           begin
             result := inherited first_int_to_real;
             exit;