From 33187ba9d0c8bdfd7611367877856e76fe29a2c6 Mon Sep 17 00:00:00 2001 From: simonb Date: Sun, 29 Jun 2003 12:21:32 +0000 Subject: [PATCH] Show current PC in an panic message. --- sys/arch/mips/mips/mips_emul.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/mips/mips/mips_emul.c b/sys/arch/mips/mips/mips_emul.c index 235bfd5c4e56..8642e3a95a6b 100644 --- a/sys/arch/mips/mips/mips_emul.c +++ b/sys/arch/mips/mips/mips_emul.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips_emul.c,v 1.4 2003/06/29 11:35:16 simonb Exp $ */ +/* $NetBSD: mips_emul.c,v 1.5 2003/06/29 12:21:32 simonb Exp $ */ /* * Copyright (c) 1999 Shuichiro URATA. All rights reserved. @@ -191,7 +191,8 @@ MachEmulateBranch(f, instpc, fpuCSR, allowNonBranch) default: if (!allowNonBranch) - panic("MachEmulateBranch: Non-branch instruction"); + panic("MachEmulateBranch: Non-branch instruction at " + "pc 0x%lx", (long)instpc); nextpc = instpc + 4; } return nextpc;