diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-09-10 16:00:31 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-09-10 16:00:31 +0000 |
commit | 6e2b47fa335a7123e50417ec7aeb6b5c4c06e7fc (patch) | |
tree | c926e921c4fe2e408dafe5bf6085eec3465d7ce6 /sys/arch/sparc64/fpu | |
parent | 19759b0b2cdedc86eb03f2f8b3f2a9ad9ef8fd02 (diff) |
Add some debugging stuff: a function to dump all of the fpstate64 fields.
Diffstat (limited to 'sys/arch/sparc64/fpu')
-rw-r--r-- | sys/arch/sparc64/fpu/fpu_emu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/fpu/fpu_emu.h b/sys/arch/sparc64/fpu/fpu_emu.h index 90c9f3babe5..9090a9a3dc2 100644 --- a/sys/arch/sparc64/fpu/fpu_emu.h +++ b/sys/arch/sparc64/fpu/fpu_emu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_emu.h,v 1.1 2001/09/08 22:33:51 jason Exp $ */ +/* $OpenBSD: fpu_emu.h,v 1.2 2001/09/10 16:00:30 jason Exp $ */ /* $NetBSD: fpu_emu.h,v 1.4 2000/08/03 18:32:07 eeh Exp $ */ /* @@ -188,9 +188,12 @@ void fpu_implode(struct fpemu *, struct fpn *, int, u_int *); #define FPE_REG 0x2 extern int fpe_debug; void fpu_dumpfpn(struct fpn *); +void fpu_dumpstate(struct fpstate64 *); #define DPRINTF(x, y) if (fpe_debug & (x)) printf y #define DUMPFPN(x, f) if (fpe_debug & (x)) fpu_dumpfpn((f)) +#define DUMPSTATE(x, s) if (fpe_debug & (x)) fpu_dumpstate((s)) #else #define DPRINTF(x, y) #define DUMPFPN(x, f) +#define DUMPSTATE(x, s) #endif |