Module Name: src Committed By: rin Date: Thu Dec 15 11:32:03 UTC 2016
Modified Files: src/sys/arch/powerpc/fpu: fpu_emu.c Log Message: Fix build without DDB. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/fpu/fpu_emu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/fpu/fpu_emu.c diff -u src/sys/arch/powerpc/fpu/fpu_emu.c:1.17 src/sys/arch/powerpc/fpu/fpu_emu.c:1.18 --- src/sys/arch/powerpc/fpu/fpu_emu.c:1.17 Tue Aug 12 20:27:10 2014 +++ src/sys/arch/powerpc/fpu/fpu_emu.c Thu Dec 15 11:32:03 2016 @@ -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 @@ fpu_emulate(struct trapframe *tf, struct 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 @@ fpu_emulate(struct trapframe *tf, struct Debugger(); } lastill = tf->tf_srr0; -#endif /* PPC_IBM4XX && DEBUG */ +#endif /* PPC_IBM4XX && DDB && DEBUG */ return false; } }