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 in a couple mor...
details: https://anonhg.NetBSD.org/src/rev/4ea76f9788c9
branches: trunk
changeset: 542808:4ea76f9788c9
user: cgd <cgd%NetBSD.org@localhost>
date: Sat Feb 08 00:50:33 2003 +0000
description:
use COP0_HAZARD_FPUENABLE in a couple more places when turning on FP:
In start (noticed after looking for more COP_1_BIT uses, and note
that there are extra nops here but really they don't hurt), and in
MachFPTrap (noticed by ... running regress!).
diffstat:
sys/arch/mips/mips/locore.S | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (31 lines):
diff -r ef0b9c6bfd45 -r 4ea76f9788c9 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Sat Feb 08 00:44:00 2003 +0000
+++ b/sys/arch/mips/mips/locore.S Sat Feb 08 00:50:33 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.150 2003/01/21 04:26:01 simonb Exp $ */
+/* $NetBSD: locore.S,v 1.151 2003/02/08 00:50:33 cgd Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -121,7 +121,7 @@
mfc0 t0, MIPS_COP_0_STATUS
or t0, MIPS_SR_COP_1_BIT # Disable interrupts, and
mtc0 t0, MIPS_COP_0_STATUS # enable the fp coprocessor
- COP0_SYNC
+ COP0_HAZARD_FPUENABLE
#endif
nop
nop
@@ -888,11 +888,7 @@
sw ra, CALLFRAME_RA(sp)
or t0, t0, MIPS_SR_COP_1_BIT
mtc0 t0, MIPS_COP_0_STATUS
- COP0_SYNC
- nop
- nop
- nop # 1st extra nop for r4k
- nop # 2nd extra nop for r4k
+ COP0_HAZARD_FPUENABLE
cfc1 t0, MIPS_FPU_CSR # stall til FP done
cfc1 t0, MIPS_FPU_CSR # now get status
Home |
Main Index |
Thread Index |
Old Index