Module Name: src
Committed By: matt
Date: Mon Jul 6 05:55:38 UTC 2015
Modified Files:
src/sys/arch/powerpc/include: userret.h
Log Message:
Don't clear PSL_FP/PSL_VEC
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/include/userret.h
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/powerpc/include/userret.h
diff -u src/sys/arch/powerpc/include/userret.h:1.29 src/sys/arch/powerpc/include/userret.h:1.30
--- src/sys/arch/powerpc/include/userret.h:1.29 Mon Jul 6 02:30:22 2015
+++ src/sys/arch/powerpc/include/userret.h Mon Jul 6 05:55:37 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: userret.h,v 1.29 2015/07/06 02:30:22 matt Exp $ */
+/* $NetBSD: userret.h,v 1.30 2015/07/06 05:55:37 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -66,7 +66,8 @@ userret(struct lwp *l, struct trapframe
"tf=%p: srr1 (%#lx): PSL_FP set but FPU curlwp %p is not curlwp %p!",
tf, tf->tf_srr1, l->l_cpu->ci_data.cpu_pcu_curlwp[PCU_FPU], l);
- tf->tf_srr1 &= PSL_USERSRR1; /* clear SRR1 status bits */
+ /* clear SRR1 status bits */
+ tf->tf_srr1 &= (PSL_USERSRR1|PSL_FP|PSL_VEC);
#ifdef ALTIVEC
/*