From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nitv9-0002oE-GV for qemu-devel@nongnu.org; Sat, 20 Feb 2010 13:19:15 -0500 Received: from [199.232.76.173] (port=38989 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nitv8-0002nV-PU for qemu-devel@nongnu.org; Sat, 20 Feb 2010 13:19:14 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nitv8-0005MJ-51 for qemu-devel@nongnu.org; Sat, 20 Feb 2010 13:19:14 -0500 Received: from mx20.gnu.org ([199.232.41.8]:58165) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nitv7-0005Lx-RI for qemu-devel@nongnu.org; Sat, 20 Feb 2010 13:19:13 -0500 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nitv6-0001Qv-19 for qemu-devel@nongnu.org; Sat, 20 Feb 2010 13:19:12 -0500 From: Nathan Froyd Date: Sat, 20 Feb 2010 10:19:09 -0800 Message-Id: <1266689949-13585-1-git-send-email-froydnj@codesourcery.com> Subject: [Qemu-devel] [PATCH] target-mips: fix CpU exception for coprocessor 0 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net When we signal a CpU exception for coprocessor 0, we should indicate that it's for coprocessor 0 instead of coprocessor 1. Signed-off-by: Nathan Froyd --- target-mips/translate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index dfea6f6..f3522f5 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -830,7 +830,7 @@ static inline void gen_op_addr_add (DisasContext *ctx, TCGv ret, TCGv arg0, TCGv static inline void check_cp0_enabled(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) - generate_exception_err(ctx, EXCP_CpU, 1); + generate_exception_err(ctx, EXCP_CpU, 0); } static inline void check_cp1_enabled(DisasContext *ctx) -- 1.6.3.2