Module Name:    src
Committed By:   matt
Date:           Tue May 26 02:18:20 UTC 2015

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

Log Message:
Use COP0_SYNC after writing the exception PC.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 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.56 src/sys/arch/mips/mips/mipsX_subr.S:1.57
--- src/sys/arch/mips/mips/mipsX_subr.S:1.56	Sun Feb 19 21:06:18 2012
+++ src/sys/arch/mips/mips/mipsX_subr.S	Tue May 26 02:18:20 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: mipsX_subr.S,v 1.56 2012/02/19 21:06:18 rmind Exp $	*/
+/*	$NetBSD: mipsX_subr.S,v 1.57 2015/05/26 02:18:20 matt Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -1095,11 +1095,12 @@ NESTED_NOPROFILE(MIPSX(user_reserved_ins
 	_MFC0	v0, MIPS_COP_0_EXC_PC
 	PTR_ADDIU v0, 4
 	_MTC0	v0, MIPS_COP_0_EXC_PC
+	COP0_SYNC
 
 	PTR_L	v1, L_PRIVATE(k1)		# rdhwr $3,$29 updates v1
+
 	REG_L	AT, CALLFRAME_SIZ+TF_REG_AST(k0)# restore reg
 	REG_L	v0, CALLFRAME_SIZ+TF_REG_V0(k0) # restore reg
-	sll	$0,$0,3				# just in case
 	eret
 END(MIPSX(user_reserved_insn))
 

Reply via email to