Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/sparc/fpu pull up 1.4 (approved by thorpej):
details: https://anonhg.NetBSD.org/src/rev/42f0f995e6b9
branches: netbsd-1-5
changeset: 488952:42f0f995e6b9
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Aug 07 01:31:11 2000 +0000
description:
pull up 1.4 (approved by thorpej):
>Add fpu emulation instrumentation and fixup FCMP and FCMPE emulation for v9.
>And rename the 128-bit `x' routines to `q' to match v9 terminology:
> i - 32-bit int
> x - 64-bit int
> s - 32-bit fp
> d - 64-bit fp
> q - 128-bit fp
diffstat:
sys/arch/sparc/fpu/fpu_emu.h | 25 +++++++++++++------------
sys/arch/sparc/fpu/fpu_extern.h | 10 +++++-----
2 files changed, 18 insertions(+), 17 deletions(-)
diffs (73 lines):
diff -r 13d7b0b434ee -r 42f0f995e6b9 sys/arch/sparc/fpu/fpu_emu.h
--- a/sys/arch/sparc/fpu/fpu_emu.h Mon Aug 07 01:30:31 2000 +0000
+++ b/sys/arch/sparc/fpu/fpu_emu.h Mon Aug 07 01:31:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_emu.h,v 1.3 2000/06/18 06:54:17 mrg Exp $ */
+/* $NetBSD: fpu_emu.h,v 1.3.2.1 2000/08/07 01:31:11 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -179,16 +179,17 @@
*/
int fpu_shr(struct fpn *, int);
-/* Conversion to and from internal format -- note asymmetry. */
-int fpu_itofpn(struct fpn *, u_int);
-int fpu_stofpn(struct fpn *, u_int);
-int fpu_dtofpn(struct fpn *, u_int, u_int);
-int fpu_xtofpn(struct fpn *, u_int, u_int, u_int, u_int);
-
-u_int fpu_fpntoi(struct fpemu *, struct fpn *);
-u_int fpu_fpntos(struct fpemu *, struct fpn *);
-u_int fpu_fpntod(struct fpemu *, struct fpn *);
-u_int fpu_fpntox(struct fpemu *, struct fpn *);
-
void fpu_explode(struct fpemu *, struct fpn *, int, int);
void fpu_implode(struct fpemu *, struct fpn *, int, u_int *);
+
+#ifdef DEBUG
+#define FPE_INSN 0x1
+#define FPE_REG 0x2
+extern int fpe_debug;
+void fpu_dumpfpn(struct fpn *);
+#define DPRINTF(x, y) if (fpe_debug & (x)) printf y
+#define DUMPFPN(x, f) if (fpe_debug & (x)) fpu_dumpfpn((f))
+#else
+#define DPRINTF(x, y)
+#define DUMPFPN(x, f)
+#endif
diff -r 13d7b0b434ee -r 42f0f995e6b9 sys/arch/sparc/fpu/fpu_extern.h
--- a/sys/arch/sparc/fpu/fpu_extern.h Mon Aug 07 01:30:31 2000 +0000
+++ b/sys/arch/sparc/fpu/fpu_extern.h Mon Aug 07 01:31:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_extern.h,v 1.3 2000/06/18 06:54:17 mrg Exp $ */
+/* $NetBSD: fpu_extern.h,v 1.3.2.1 2000/08/07 01:31:13 mrg Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -70,21 +70,21 @@
/* fpu_explode.c */
int fpu_itof __P((struct fpn *, u_int));
#ifdef SUN4U
-int fpu_xitof __P((struct fpn *, u_int64_t));
+int fpu_xtof __P((struct fpn *, u_int64_t));
#endif /* SUN4U */
int fpu_stof __P((struct fpn *, u_int));
int fpu_dtof __P((struct fpn *, u_int, u_int ));
-int fpu_xtof __P((struct fpn *, u_int, u_int , u_int , u_int ));
+int fpu_qtof __P((struct fpn *, u_int, u_int , u_int , u_int ));
void fpu_explode __P((struct fpemu *, struct fpn *, int, int ));
/* fpu_implode.c */
u_int fpu_ftoi __P((struct fpemu *, struct fpn *));
#ifdef SUN4U
-u_int fpu_ftoxi __P((struct fpemu *, struct fpn *, u_int *));
+u_int fpu_ftox __P((struct fpemu *, struct fpn *, u_int *));
#endif /* SUN4U */
u_int fpu_ftos __P((struct fpemu *, struct fpn *));
u_int fpu_ftod __P((struct fpemu *, struct fpn *, u_int *));
-u_int fpu_ftox __P((struct fpemu *, struct fpn *, u_int *));
+u_int fpu_ftoq __P((struct fpemu *, struct fpn *, u_int *));
void fpu_implode __P((struct fpemu *, struct fpn *, int, u_int *));
/* fpu_mul.c */
Home |
Main Index |
Thread Index |
Old Index