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 It helps to call fpu_sqrt() when dealin...



details:   https://anonhg.NetBSD.org/src/rev/fdf4a1a699b0
branches:  trunk
changeset: 569978:fdf4a1a699b0
user:      scw <scw%NetBSD.org@localhost>
date:      Wed Sep 15 07:04:21 2004 +0000

description:
It helps to call fpu_sqrt() when dealing with the frsqrte instruction.

diffstat:

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

diffs (26 lines):

diff -r 08cb7ee59232 -r fdf4a1a699b0 sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Wed Sep 15 04:56:14 2004 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Wed Sep 15 07:04:21 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.11 2004/03/30 00:04:37 simonb Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.12 2004/09/15 07:04:21 scw Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.11 2004/03/30 00:04:37 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.12 2004/09/15 07:04:21 scw Exp $");
 
 #include "opt_ddb.h"
 
@@ -670,6 +670,7 @@
                                FPU_EMU_EVCNT_INCR(frsqrte);
                                DPRINTF(FPE_INSN, ("fpu_execute: FRSQRTE\n"));
                                fpu_explode(fe, &fe->fe_f1, type, rb);
+                               fp = fpu_sqrt(fe);
                                fe->fe_f2 = *fp;
                                /* now we've gotta overwrite the dest reg */
                                *((int *)&fe->fe_fpstate->fpreg[rt]) = 1;



Home | Main Index | Thread Index | Old Index