Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/oea Don't preserve PSL_FP/PSL_VEC in cpu_se...
details: https://anonhg.NetBSD.org/src/rev/ba9a3c4be61c
branches: trunk
changeset: 339223:ba9a3c4be61c
user: matt <matt%NetBSD.org@localhost>
date: Mon Jul 06 05:20:50 2015 +0000
description:
Don't preserve PSL_FP/PSL_VEC in cpu_setmcontext.
diffstat:
sys/arch/powerpc/oea/oea_machdep.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r cf272be5e869 -r ba9a3c4be61c sys/arch/powerpc/oea/oea_machdep.c
--- a/sys/arch/powerpc/oea/oea_machdep.c Mon Jul 06 05:03:56 2015 +0000
+++ b/sys/arch/powerpc/oea/oea_machdep.c Mon Jul 06 05:20:50 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: oea_machdep.c,v 1.71 2014/03/24 19:29:59 christos Exp $ */
+/* $NetBSD: oea_machdep.c,v 1.72 2015/07/06 05:20:50 matt Exp $ */
/*
* Copyright (C) 2002 Matt Thomas
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.71 2014/03/24 19:29:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.72 2015/07/06 05:20:50 matt Exp $");
#include "opt_ppcarch.h"
#include "opt_compat_netbsd.h"
@@ -440,19 +440,16 @@
/*
* Configure a PSL user mask matching this processor.
+ * Don't allow to set PSL_FP/PSL_VEC, since that will affect PCU.
*/
cpu_psluserset = PSL_EE | PSL_PR | PSL_ME | PSL_IR | PSL_DR | PSL_RI;
- cpu_pslusermod = PSL_FP | PSL_FE0 | PSL_FE1 | PSL_LE | PSL_SE | PSL_BE;
+ cpu_pslusermod = PSL_FE0 | PSL_FE1 | PSL_LE | PSL_SE | PSL_BE;
#ifdef PPC_OEA601
if (cpuvers == MPC601) {
cpu_psluserset &= PSL_601_MASK;
cpu_pslusermod &= PSL_601_MASK;
}
#endif
-#ifdef ALTIVEC
- if (cpu_altivec)
- cpu_pslusermod |= PSL_VEC;
-#endif
#ifdef PPC_HIGH_VEC
cpu_psluserset |= PSL_IP; /* XXX ok? */
#endif
Home |
Main Index |
Thread Index |
Old Index