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 Make this compile when DEBUG isn't defi...



details:   https://anonhg.NetBSD.org/src/rev/045043dffd39
branches:  trunk
changeset: 511580:045043dffd39
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jun 22 03:25:39 2001 +0000

description:
Make this compile when DEBUG isn't defined.

diffstat:

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

diffs (33 lines):

diff -r aea422126ff2 -r 045043dffd39 sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Fri Jun 22 01:42:20 2001 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Fri Jun 22 03:25:39 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.1 2001/06/13 06:01:47 simonb Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.2 2001/06/22 03:25:39 simonb Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -195,18 +195,22 @@
        case NOTFPU:
        default:
                DPRINTF(FPE_EX, ("fpu_emulate: SIGILL\n"));
+#ifdef DEBUG
                if (fpe_debug & FPE_EX) {
                        printf("fpu_emulate:  illegal insn %x at %p:",
                        insn.i_int, (void *) (frame->srr0));
                        opc_disasm((vaddr_t)(frame->srr0), insn.i_int);
                }
+#endif
                /*
                * XXXX retry an illegal insn once due to cache issues.
                */
                if (lastill == frame->srr0) {
                        sig = SIGILL;
+#ifdef DEBUG
                        if (fpe_debug & FPE_EX)
-                       Debugger();
+                               Debugger();
+#endif
                }
                lastill = frame->srr0;
                break;



Home | Main Index | Thread Index | Old Index