Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Print the address of a problem instructio...



details:   https://anonhg.NetBSD.org/src/rev/ce10c88a0695
branches:  trunk
changeset: 566066:ce10c88a0695
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Apr 26 22:29:07 2004 +0000

description:
Print the address of a problem instruction when we panic.

diffstat:

 sys/arch/mips/mips/mips_emul.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r deeed2a90d28 -r ce10c88a0695 sys/arch/mips/mips/mips_emul.c
--- a/sys/arch/mips/mips/mips_emul.c    Mon Apr 26 22:27:43 2004 +0000
+++ b/sys/arch/mips/mips/mips_emul.c    Mon Apr 26 22:29:07 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_emul.c,v 1.10 2004/03/26 17:34:18 drochner Exp $ */
+/*     $NetBSD: mips_emul.c,v 1.11 2004/04/26 22:29:07 simonb Exp $ */
 
 /*
  * Copyright (c) 1999 Shuichiro URATA.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mips_emul.c,v 1.10 2004/03/26 17:34:18 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_emul.c,v 1.11 2004/04/26 22:29:07 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -108,7 +108,8 @@
                else if (allowNonBranch)
                        nextpc = instpc + 4;
                else
-                       panic("MachEmulateBranch: Non-branch");
+                       panic("MachEmulateBranch: Non-branch instruction at "
+                           "pc 0x%lx", (long)instpc);
                break;
 
        case OP_BCOND:



Home | Main Index | Thread Index | Old Index