Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 2015 04:01:59 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290349 - head/sys/arm/arm
Message-ID:  <201511040401.tA441xnN099773@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Wed Nov  4 04:01:59 2015
New Revision: 290349
URL: https://svnweb.freebsd.org/changeset/base/290349

Log:
  Revert r290243, it's vaid "illegal instruction" case
  
  DEX bit is set to 1 and exception raised whenever vectorized operation is
  attempted on the VFP implementation that does not support it (i.e. on Cortex A7)

Modified:
  head/sys/arm/arm/vfp.c

Modified: head/sys/arm/arm/vfp.c
==============================================================================
--- head/sys/arm/arm/vfp.c	Wed Nov  4 01:00:42 2015	(r290348)
+++ head/sys/arm/arm/vfp.c	Wed Nov  4 04:01:59 2015	(r290349)
@@ -179,12 +179,12 @@ vfp_bounce(u_int addr, u_int insn, struc
 	fpexc = fmrx(fpexc);
 	if (fpexc & VFPEXC_EN) {
 		/* Clear any exceptions */
-		fmxr(fpexc, fpexc & ~(VFPEXC_EX | VFPEXC_DEX | VFPEXC_FP2V));
+		fmxr(fpexc, fpexc & ~(VFPEXC_EX | VFPEXC_FP2V));
 
 		/* kill the process - we do not handle emulation */
 		critical_exit();
 
-		if (fpexc & (VFPEXC_EX | VFPEXC_DEX)) {
+		if (fpexc & VFPEXC_EX) {
 			/* We have an exception, signal a SIGFPE */
 			ksiginfo_init_trap(&ksi);
 			ksi.ksi_signo = SIGFPE;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511040401.tA441xnN099773>