Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/vfp in vfp_state_load(), fix backwards logic fo...



details:   https://anonhg.NetBSD.org/src/rev/b309b7c38b71
branches:  trunk
changeset: 822503:b309b7c38b71
user:      chs <chs%NetBSD.org@localhost>
date:      Wed Mar 22 23:36:02 2017 +0000

description:
in vfp_state_load(), fix backwards logic for fpinst vs. fpinst2.

diffstat:

 sys/arch/arm/vfp/vfp_init.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 09aa67f6382c -r b309b7c38b71 sys/arch/arm/vfp/vfp_init.c
--- a/sys/arch/arm/vfp/vfp_init.c       Wed Mar 22 23:11:07 2017 +0000
+++ b/sys/arch/arm/vfp/vfp_init.c       Wed Mar 22 23:36:02 2017 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: vfp_init.c,v 1.51 2017/03/16 16:13:20 chs Exp $ */
+/*      $NetBSD: vfp_init.c,v 1.52 2017/03/22 23:36:02 chs Exp $ */
 
 /*
  * Copyright (c) 2008 ARM Ltd
@@ -546,9 +546,9 @@
 
        if (fregs->vfp_fpexc & VFP_FPEXC_EX) {
                /* Need to restore the exception handling state.  */
-               armreg_fpinst2_write(fregs->vfp_fpinst2);
+               armreg_fpinst_write(fregs->vfp_fpinst);
                if (fregs->vfp_fpexc & VFP_FPEXC_FP2V)
-                       armreg_fpinst_write(fregs->vfp_fpinst);
+                       armreg_fpinst2_write(fregs->vfp_fpinst2);
        }
 }
 



Home | Main Index | Thread Index | Old Index