Module Name:    src
Committed By:   skrll
Date:           Fri Aug  5 15:39:09 UTC 2016

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

Log Message:
Fix register usage in the swap operation in tlb_update_addr.

This should help LOONGSON and hpcmips


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 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.79 src/sys/arch/mips/mips/mipsX_subr.S:1.80
--- src/sys/arch/mips/mips/mipsX_subr.S:1.79	Fri Aug  5 15:35:32 2016
+++ src/sys/arch/mips/mips/mipsX_subr.S	Fri Aug  5 15:39:09 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: mipsX_subr.S,v 1.79 2016/08/05 15:35:32 skrll Exp $	*/
+/*	$NetBSD: mipsX_subr.S,v 1.80 2016/08/05 15:39:09 skrll Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -2164,7 +2164,7 @@ LEAF(MIPSX(tlb_update_addr))
 	 nop
 	move	t3, a2				# swap a2 and t0
 	move	a2, t0				#
-	move	t0, a3				#
+	move	t0, t3				#
 4:
 	_MTC0	t0, MIPS_COP_0_TLB_LO0		# init low reg0.
 	_MTC0	a2, MIPS_COP_0_TLB_LO1		# init low reg1.

Reply via email to