]> sourceware.org Git - newlib-cygwin.git/commitdiff
2006-11-24 Thiemo Seufer <ths@mips.com>
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 24 Nov 2006 18:19:18 +0000 (18:19 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 24 Nov 2006 18:19:18 +0000 (18:19 +0000)
            Nigel Stephens  <nigel@mips.com>

        * mips/crt0.S (_start): Use all available float registers. Don't touch
        SR_PE on post-mips2 CPUs, it means soft reset there.

libgloss/ChangeLog
libgloss/mips/crt0.S

index 794bd062893023f8e00d1194a2c652c4357df05f..5677789918cc93f72ce1f4d657de42a966ef1b8c 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-24  Thiemo Seufer  <ths@mips.com>
+            Nigel Stephens  <nigel@mips.com>
+
+       * mips/crt0.S (_start): Use all available float registers. Don't touch
+       SR_PE on post-mips2 CPUs, it means soft reset there.
+
 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
 
        * spu/syscalls.c: Include spu_intrinsics.h to provide vector keyword.
index 8810afa6cb1f7cef41d4c05389a1ea6295de6bef..651b2a7823508bd58a81d8a74504b4fac8e9e53d 100644 (file)
@@ -65,11 +65,21 @@ _start:
        nop
        move    s0,$31
 #endif
-#if !defined(__mips64) || (__mips_fpr==32)
-#define STATUS_MASK (SR_CU1|SR_PE)
+#if __mips<3
+#  define STATUS_MASK (SR_CU1|SR_PE)
 #else
-# For mips3 or mips4, turn on 64-bit addressing and additional float regs
-#define STATUS_MASK (SR_CU1|SR_PE|SR_FR|SR_KX|SR_SX|SR_UX)
+/* Post-mips2 has no SR_PE bit.  */
+#  ifdef __mips64
+/* Turn on 64-bit addressing and additional float regs.  */
+#    define STATUS_MASK (SR_CU1|SR_FR|SR_KX|SR_SX|SR_UX)
+#  else
+#    ifdef __mips_fpr=32
+#      define STATUS_MASK (SR_CU1)
+#    else
+/* Turn on additional float regs.  */
+#      define STATUS_MASK (SR_CU1|SR_FR)
+#    endif
+#  endif
 #endif
        li      v0, STATUS_MASK
        mtc0    v0, C0_SR
This page took 0.038682 seconds and 5 git commands to generate.