Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/fpu fpu_implode(): Clear lower word for flo...



details:   https://anonhg.NetBSD.org/src/rev/9e9980d3fbfc
branches:  trunk
changeset: 369824:9e9980d3fbfc
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Sep 02 12:48:04 2022 +0000

description:
fpu_implode(): Clear lower word for float just for sure.

diffstat:

 sys/arch/powerpc/fpu/fpu_implode.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 37ebce9399bd -r 9e9980d3fbfc sys/arch/powerpc/fpu/fpu_implode.c
--- a/sys/arch/powerpc/fpu/fpu_implode.c        Fri Sep 02 12:47:10 2022 +0000
+++ b/sys/arch/powerpc/fpu/fpu_implode.c        Fri Sep 02 12:48:04 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_implode.c,v 1.17 2022/09/02 12:40:49 rin Exp $ */
+/*     $NetBSD: fpu_implode.c,v 1.18 2022/09/02 12:48:04 rin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.17 2022/09/02 12:40:49 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_implode.c,v 1.18 2022/09/02 12:48:04 rin Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -551,6 +551,7 @@
 
        case FTYPE_SNG:
                *hi = fpu_ftos(fe, fp, fprf);
+               *lo = 0;
                DPRINTF(FPE_REG, ("fpu_implode: single %x\n",
                        space[0]));
                break;



Home | Main Index | Thread Index | Old Index