Module Name: src
Committed By: skrll
Date: Sun Aug 7 06:15:50 UTC 2016
Modified Files:
src/sys/arch/mips/mips: mipsX_subr.S
Log Message:
Restore a MFC0_HAZARD lost in r1.68
To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/mips/mips/mipsX_subr.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/mipsX_subr.S
diff -u src/sys/arch/mips/mips/mipsX_subr.S:1.81 src/sys/arch/mips/mips/mipsX_subr.S:1.82
--- src/sys/arch/mips/mips/mipsX_subr.S:1.81 Sun Aug 7 06:12:24 2016
+++ src/sys/arch/mips/mips/mipsX_subr.S Sun Aug 7 06:15:49 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: mipsX_subr.S,v 1.81 2016/08/07 06:12:24 skrll Exp $ */
+/* $NetBSD: mipsX_subr.S,v 1.82 2016/08/07 06:15:49 skrll Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -2289,6 +2289,7 @@ LEAF_NOPROFILE(MIPSX(tlb_invalidate_addr
tlbp # probe the entry in question
COP0_SYNC
mfc0 v0, MIPS_COP_0_TLB_INDEX # see what we got
+ MFC0_HAZARD
bltz v0, 2f # index < 0 then skip
li t2, MIPS_KSEG0_START # invalid address
PTR_SLL v0, PGSHIFT | 1 # PAGE_SHIFT | 1