diff options
author | 2001-09-10 16:00:30 +0000 | |
---|---|---|
committer | 2001-09-10 16:00:30 +0000 | |
commit | db7753cf0ace4673ad040ee02182ae7e35b77bb2 (patch) | |
tree | 81617556be8ba0d89cc5b9a889cd3bbfaa856e4d | |
parent | use arc4random for iv as art@ suggested (diff) | |
download | wireguard-openbsd-db7753cf0ace4673ad040ee02182ae7e35b77bb2.tar.xz wireguard-openbsd-db7753cf0ace4673ad040ee02182ae7e35b77bb2.zip |
Add some debugging stuff: a function to dump all of the fpstate64 fields.
-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 |