From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvdBj-0005xi-VS for qemu-devel@nongnu.org; Sat, 16 Dec 2006 12:19:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvdBi-0005wy-9t for qemu-devel@nongnu.org; Sat, 16 Dec 2006 12:19:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvdBi-0005wt-2t for qemu-devel@nongnu.org; Sat, 16 Dec 2006 12:19:06 -0500 Received: from [193.7.176.60] (helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GvdBh-0001rh-Po for qemu-devel@nongnu.org; Sat, 16 Dec 2006 12:19:06 -0500 Date: Sat, 16 Dec 2006 17:11:43 +0000 Message-ID: <20061216171142.GA21660@networkno.de> References: <20061204.015327.36921579.anemo@mba.ocn.ne.jp> <20061203213518.GA22225@linux-mips.org> <20061216.012645.07642903.anemo@mba.ocn.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061216.012645.07642903.anemo@mba.ocn.ne.jp> From: Thiemo Seufer Subject: [Qemu-devel] Re: [MIPS] Use conditional traps for BUG_ON on MIPS II and better. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Atsushi Nemoto Cc: linux-mips@linux-mips.org, qemu-devel@nongnu.org Atsushi Nemoto wrote: > On Sun, 3 Dec 2006 21:35:18 +0000, Ralf Baechle wrote: > > > It seems this commit break QEMU kernel ... or QEMU can not interpret > > > the TNE instruction correctly? > > > > Thiemo says that's indeed a possibility. Probably that feature has not > > been well tested in qemu. > > I found the bug. "Trap If XXX" instructions are translated as it was > "Trap If XXX Immediate". > > Index: target-mips/translate.c > =================================================================== > RCS file: /sources/qemu/qemu/target-mips/translate.c,v > retrieving revision 1.27 > diff -u -r1.27 translate.c > --- target-mips/translate.c 10 Dec 2006 22:08:10 -0000 1.27 > +++ target-mips/translate.c 15 Dec 2006 16:16:07 -0000 > @@ -1276,6 +1276,7 @@ > GEN_LOAD_REG_TN(T1, rt); > cond = 1; > } > + break; > case OPC_TEQI: > case OPC_TGEI: > case OPC_TGEIU: Thanks, committed. Thiemo