Module Name:    src
Committed By:   bouyer
Date:           Sun Apr  8 09:19:27 UTC 2018

Modified Files:
        src/sys/arch/arm/vfp: vfp_init.c

Log Message:
Remove the call to vfp_fpscr_handler() from vfp_handler(). It actually never
avoids a full FPU switch, and costs a function call and a few tests.

Discussed on port-arm@ on october 2017:
http://mail-index.netbsd.org/port-arm/2017/10/16/msg004411.html


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/arm/vfp/vfp_init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/vfp/vfp_init.c
diff -u src/sys/arch/arm/vfp/vfp_init.c:1.56 src/sys/arch/arm/vfp/vfp_init.c:1.57
--- src/sys/arch/arm/vfp/vfp_init.c:1.56	Fri Mar  2 23:07:55 2018
+++ src/sys/arch/arm/vfp/vfp_init.c	Sun Apr  8 09:19:27 2018
@@ -1,4 +1,4 @@
-/*      $NetBSD: vfp_init.c,v 1.56 2018/03/02 23:07:55 christos Exp $ */
+/*      $NetBSD: vfp_init.c,v 1.57 2018/04/08 09:19:27 bouyer Exp $ */
 
 /*
  * Copyright (c) 2008 ARM Ltd
@@ -409,13 +409,6 @@ vfp_handler(u_int address, u_int insn, t
 		return 1;
 	}
 
-	/*
-	 * If we are just changing/fetching FPSCR, don't bother loading it
-	 * just emulate the instruction.
-	 */
-	if (!vfp_fpscr_handler(address, insn, frame, fault_code))
-		return 0;
-
 	/* 
 	 * If we already own the FPU and it's enabled (and no exception), raise
 	 * SIGILL.  If there is an exception, drop through to raise a SIGFPE.

Reply via email to