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 Use COP0_HAZARD_FPUENABLE instead of a ha...
details: https://anonhg.NetBSD.org/src/rev/005f3e221754
branches: trunk
changeset: 539335:005f3e221754
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Nov 15 01:16:18 2002 +0000
description:
Use COP0_HAZARD_FPUENABLE instead of a hard-coded 4 NOPs when enabling
the FPU.
diffstat:
sys/arch/mips/mips/mips_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 4d7e6ff5420f -r 005f3e221754 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Fri Nov 15 01:15:11 2002 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Fri Nov 15 01:16:18 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.154 2002/11/09 04:13:03 simonb Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.155 2002/11/15 01:16:18 simonb Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -120,7 +120,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.154 2002/11/09 04:13:03 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.155 2002/11/15 01:16:18 simonb Exp $");
#include "opt_cputype.h"
@@ -1459,7 +1459,7 @@
"mfc0 %0, $12 ;"
"li $1, %2 ;"
"mtc0 $1, $12 ;"
- "nop; nop; nop; nop ;"
+ ___STRING(COP0_HAZARD_FPUENABLE)
"cfc1 %1, $31 ;"
"cfc1 %1, $31 ;"
".set reorder ;"
@@ -1539,7 +1539,7 @@
"mfc0 %0, $12 ;"
"li $1, %1 ;"
"mtc0 $1, $12 ;"
- "nop; nop; nop; nop ;"
+ ___STRING(COP0_HAZARD_FPUENABLE)
".set reorder ;"
".set at" : "=r"(status) : "i"(MIPS_SR_COP_1_BIT));
Home |
Main Index |
Thread Index |
Old Index