Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc In mtmsr emulation ignore PSL_VEC w...



details:   https://anonhg.NetBSD.org/src/rev/1b0559d4f434
branches:  trunk
changeset: 323451:1b0559d4f434
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Jun 15 22:07:14 2018 +0000

description:
In mtmsr emulation ignore PSL_VEC we set in mfmsr emulation just
above, as it freaks out PSL_USEROK_P().  This is also congruent with
how we handle PSL_FP.

PR port-macppc/53360

diffstat:

 sys/arch/powerpc/powerpc/trap.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 158c7a24c200 -r 1b0559d4f434 sys/arch/powerpc/powerpc/trap.c
--- a/sys/arch/powerpc/powerpc/trap.c   Fri Jun 15 21:59:17 2018 +0000
+++ b/sys/arch/powerpc/powerpc/trap.c   Fri Jun 15 22:07:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.153 2017/03/16 16:13:20 chs Exp $   */
+/*     $NetBSD: trap.c,v 1.154 2018/06/15 22:07:14 uwe Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.153 2017/03/16 16:13:20 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.154 2018/06/15 22:07:14 uwe Exp $");
 
 #include "opt_altivec.h"
 #include "opt_ddb.h"
@@ -1062,6 +1062,9 @@
                 * user code isn't allowed to change it.
                 */
                msr &= ~PSL_FP;
+#ifdef ALTIVEC
+               msr &= ~PSL_VEC;
+#endif
 
                /*
                 * Don't let the user muck with bits he's not allowed to.



Home | Main Index | Thread Index | Old Index