Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Don't clear PSL_FP/PSL_VEC



details:   https://anonhg.NetBSD.org/src/rev/cc24bec991ca
branches:  trunk
changeset: 339226:cc24bec991ca
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 06 05:55:37 2015 +0000

description:
Don't clear PSL_FP/PSL_VEC

diffstat:

 sys/arch/powerpc/include/userret.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 82a22a0d7e25 -r cc24bec991ca sys/arch/powerpc/include/userret.h
--- a/sys/arch/powerpc/include/userret.h        Mon Jul 06 05:36:26 2015 +0000
+++ b/sys/arch/powerpc/include/userret.h        Mon Jul 06 05:55:37 2015 +0000
@@ -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 @@
            "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
        /*



Home | Main Index | Thread Index | Old Index