Browse Source

* Fixed default float exceptions mask for arm fpu. It fixes tw3160c.pp on arm-linux.

git-svn-id: trunk@8054 -
yury 18 years ago
parent
commit
ef3178cdb1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/arm/arm.inc

+ 2 - 1
rtl/arm/arm.inc

@@ -24,10 +24,11 @@ const
 procedure fpc_cpuinit;
 procedure fpc_cpuinit;
 begin
 begin
 {$if not(defined(wince)) and not(defined(gba)) and not(defined(nds)) and not(defined(FPUSOFT)) and not(defined(FPULIBGCC))}
 {$if not(defined(wince)) and not(defined(gba)) and not(defined(nds)) and not(defined(FPUSOFT)) and not(defined(FPULIBGCC))}
+  { Enable FPU exceptions, but disable INEXACT, UNDERFLOW, DENORMAL }
   asm
   asm
     rfs r0
     rfs r0
     and r0,r0,#0xffe0ffff
     and r0,r0,#0xffe0ffff
-    orr r0,r0,#0x00020000
+    orr r0,r0,#0x00070000
     wfs r0
     wfs r0
   end;
   end;
 {$endif}
 {$endif}