Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FBdZi-00088O-U6 for qemu-devel@nongnu.org; Tue, 21 Feb 2006 14:53:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FBdBG-0006vK-22 for qemu-devel@nongnu.org; Tue, 21 Feb 2006 14:28:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBd2V-00040v-Pq for qemu-devel@nongnu.org; Tue, 21 Feb 2006 14:19:13 -0500 Received: from [193.7.176.20] (helo=bender.bawue.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FBd8p-000586-Hg for qemu-devel@nongnu.org; Tue, 21 Feb 2006 14:25:43 -0500 Received: from lagash (unknown [194.74.144.146]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by bender.bawue.de (Postfix) with ESMTP id 26DF54417F for ; Tue, 21 Feb 2006 20:19:10 +0100 (MET) Received: from ths by lagash with local (Exim 4.60) (envelope-from ) id 1FBd2p-0004my-UI for qemu-devel@nongnu.org; Tue, 21 Feb 2006 19:19:32 +0000 Date: Tue, 21 Feb 2006 19:19:31 +0000 Message-ID: <20060221191931.GB4110@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Thiemo Seufer Subject: [Qemu-devel] [PATCH] Clear BMASK also for ErrorEPC Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello All, this clears MIPS_HFLAG_BMASK also for ErrorEPC, like it is done already for EPC and DEPC. Thiemo diff -urpN qemu-work/target-mips/helper.c qemu/target-mips/helper.c --- qemu-work/target-mips/helper.c 2006-02-18 00:40:44.000000000 +0000 +++ qemu/target-mips/helper.c 2006-02-15 14:00:33.000000000 +0000 @@ -325,6 +325,7 @@ void do_interrupt (CPUState *env) * come back to the jump */ env->CP0_ErrorEPC = env->PC - 4; + env->hflags &= ~MIPS_HFLAG_BMASK; } else { env->CP0_ErrorEPC = env->PC; }