Remove the splurious check for EN_SW_DATACHAIN when looking at mxcsr traps.
The relevant bit is always masked out higher up. The only place I can find a reference to a 'datachain' error is for the weitek 1167 fpu. Even the 8087 has the corresponding bit of the x87 status reserved. Quite why it has appeared here is anybodies guess.
This commit is contained in:
parent
9f33b0ead1
commit
7cd0ae66b2
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: trap.c,v 1.269 2014/01/26 19:16:17 dsl Exp $ */
|
/* $NetBSD: trap.c,v 1.270 2014/02/07 19:32:50 dsl Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.269 2014/01/26 19:16:17 dsl Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.270 2014/02/07 19:32:50 dsl Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_kgdb.h"
|
#include "opt_kgdb.h"
|
||||||
|
@ -220,8 +220,6 @@ xmm_si_code(struct lwp *l)
|
||||||
return FPE_FLTOVF;
|
return FPE_FLTOVF;
|
||||||
case EN_SW_UNDERFLOW:
|
case EN_SW_UNDERFLOW:
|
||||||
return FPE_FLTUND;
|
return FPE_FLTUND;
|
||||||
case EN_SW_DATACHAIN:
|
|
||||||
return FPE_FLTSUB;
|
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue