Browse Source

- MIPS: removed functions get_fsr and set_fsr from the RTL in case the SoftFPU
is enabled, because they contain inline assembler, containing FPU code

Nikolay Nikolov 10 months ago
parent
commit
1b26f5c3a3
2 changed files with 6 additions and 2 deletions
  1. 4 0
      rtl/mips/cpuh.inc
  2. 2 2
      rtl/mips/mips.inc

+ 4 - 0
rtl/mips/cpuh.inc

@@ -14,5 +14,9 @@
 
  **********************************************************************}
 
+{$if defined(FPUNONE) or defined(FPUSOFT)}
+  {$define FPC_SYSTEM_FPUCW_IMMUTABLE}
+{$else}
 type
   TNativeFPUControlWord = dword;
+{$endif}

+ 2 - 2
rtl/mips/mips.inc

@@ -16,7 +16,7 @@
 {****************************************************************************
                            MIPS specific stuff
 ****************************************************************************}
-{$IFNDEF FPUNONE}
+{$if not defined(FPUNONE) and not defined(FPUSOFT)}
 function get_fsr : dword;assembler;nostackframe;[public, alias: 'FPC_GETFSR'];
   asm
     cfc1 $2,$31
@@ -72,7 +72,7 @@ const
 
   fpu_all_bits = fpu_enable_mask or fpu_flags_mask or fpu_cause_mask or fpu_rounding_mask;
 
-{$ENDIF}
+{$endif}
 
 
 {$if defined(FPUMIPS2) or defined(FPUMIPS3)}