Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Remove now duplicate code to read FPU_ID ...



details:   https://anonhg.NetBSD.org/src/rev/bff18d9f4d47
branches:  trunk
changeset: 831016:bff18d9f4d47
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Mar 07 20:46:05 2018 +0000

description:
Remove now duplicate code to read FPU_ID into t1

diffstat:

 sys/arch/mips/mips/locore.S |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 9e85a0cd0526 -r bff18d9f4d47 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Wed Mar 07 20:43:53 2018 +0000
+++ b/sys/arch/mips/mips/locore.S       Wed Mar 07 20:46:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.215 2018/03/07 20:43:53 maya Exp $        */
+/*     $NetBSD: locore.S,v 1.216 2018/03/07 20:46:05 maya Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
 #include <mips/trap.h>
 #include <mips/locore.h>
 
-RCSID("$NetBSD: locore.S,v 1.215 2018/03/07 20:43:53 maya Exp $")
+RCSID("$NetBSD: locore.S,v 1.216 2018/03/07 20:46:05 maya Exp $")
 
 #include "assym.h"
 
@@ -171,11 +171,6 @@
        mtc0    k0, MIPS_COP_0_STATUS
 #endif
 
-#ifdef NOFPU /* No FPU; avoid touching FPU registers */
-       add     t1, zero, zero
-#else
-       cfc1    t1, MIPS_FPU_ID                 # read FPU ID register
-#endif
        INT_S   t0, _C_LABEL(mips_options)+MO_CPU_ID # save PRID register
        INT_S   t1, _C_LABEL(mips_options)+MO_FPU_ID # save FPU ID register
        PTR_LA  MIPS_CURLWP, _C_LABEL(lwp0)     # set curlwp



Home | Main Index | Thread Index | Old Index