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 Fix build without DDB.



details:   https://anonhg.NetBSD.org/src/rev/bac6f032bf7c
branches:  trunk
changeset: 349588:bac6f032bf7c
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Dec 15 11:32:03 2016 +0000

description:
Fix build without DDB.

diffstat:

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

diffs (44 lines):

diff -r f3dc049b663a -r bac6f032bf7c sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Thu Dec 15 10:01:16 2016 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Thu Dec 15 11:32:03 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.17 2014/08/12 20:27:10 joerg Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.18 2016/12/15 11:32:03 rin Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.17 2014/08/12 20:27:10 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.18 2016/12/15 11:32:03 rin Exp $");
 
 #include "opt_ddb.h"
 
@@ -248,14 +248,14 @@
        case NOTFPU:
        default:
                DPRINTF(FPE_EX, ("fpu_emulate: SIGILL\n"));
-#ifdef DEBUG
+#if defined(DDB) && defined(DEBUG)
                if (fpe_debug & FPE_EX) {
                        printf("fpu_emulate:  illegal insn %x at %p:",
                        insn.i_int, (void *) (tf->tf_srr0));
                        opc_disasm((vaddr_t)(tf->tf_srr0), insn.i_int);
                }
 #endif
-#if defined(PPC_IBM4XX) && defined(DEBUG)
+#if defined(PPC_IBM4XX) && defined(DDB) && defined(DEBUG)
                /*
                * XXXX retry an illegal insn once due to cache issues.
                */
@@ -265,7 +265,7 @@
                                Debugger();
                }
                lastill = tf->tf_srr0;
-#endif /* PPC_IBM4XX && DEBUG */
+#endif /* PPC_IBM4XX && DDB && DEBUG */
                return false;
        }
 }



Home | Main Index | Thread Index | Old Index