Module Name:    src
Committed By:   skrll
Date:           Mon May 15 10:59:24 UTC 2017

Modified Files:
        src/sys/arch/mips/mips: mipsX_subr.S

Log Message:
Fix off-by-one in tlb_record_asids


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 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.99 src/sys/arch/mips/mips/mipsX_subr.S:1.100
--- src/sys/arch/mips/mips/mipsX_subr.S:1.99	Sun May  7 05:50:39 2017
+++ src/sys/arch/mips/mips/mipsX_subr.S	Mon May 15 10:59:24 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: mipsX_subr.S,v 1.99 2017/05/07 05:50:39 skrll Exp $	*/
+/*	$NetBSD: mipsX_subr.S,v 1.100 2017/05/15 10:59:24 skrll Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -2576,7 +2576,7 @@ LEAF_NOPROFILE(MIPSX(tlb_record_asids))
 	_MFC0	t0, MIPS_COP_0_TLB_HI		# get VA and ASID
 	MFC0_HAZARD
 	and	t0, t0, MIPS3_PG_ASID		# focus on ASID
-	bge	t0, a1, 4f			# >= ASID max? skip
+	bgt	t0, a1, 4f			# > ASID max? skip
 	 nop
 
 	srl	a2, t0, 3 + LONG_SCALESHIFT	# drop low 5 or 6 bits

Reply via email to