Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDzmQ-0006ol-F5 for qemu-devel@nongnu.org; Fri, 18 Aug 2006 04:32:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDzmO-0006oZ-KB for qemu-devel@nongnu.org; Fri, 18 Aug 2006 04:32:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDzmO-0006oW-G4 for qemu-devel@nongnu.org; Fri, 18 Aug 2006 04:32:36 -0400 Received: from [62.8.134.5] (helo=mail.sysgo.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDzt3-0002Jg-Rz for qemu-devel@nongnu.org; Fri, 18 Aug 2006 04:39:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.sysgo.com (Postfix) with ESMTP id 44991CC2EB for ; Fri, 18 Aug 2006 10:32:33 +0200 (CEST) Received: from donald.sysgo.com (unknown [172.20.1.30]) by mail.sysgo.com (Postfix) with ESMTP id D44DECC2D2 for ; Fri, 18 Aug 2006 10:32:32 +0200 (CEST) Received: from mag.sysgo.com (mag.sysgo.com [172.24.2.130]) by donald.sysgo.com (Postfix) with ESMTP id 3977B2685E4 for ; Fri, 18 Aug 2006 10:32:31 +0200 (CEST) Date: Fri, 18 Aug 2006 10:32:29 +0200 (CEST) From: Marius Groeger Sender: mag@sysgo.com Subject: Re: [Qemu-devel] Wrong reset of MIPS hflags EXL after interrupt? In-Reply-To: <20060816182908.GC6387@networkno.de> Message-ID: References: <44E3500A.4050608@gmail.com> <20060816182908.GC6387@networkno.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 On Wed, 16 Aug 2006, Thiemo Seufer wrote: > Dirk Behme wrote: >> Hi, >> >> I'm not sure, but while playing with MIPS interrupts, it >> seems to me that something with reset of interrupt flag >> MIPS_HFLAG_EXL (0x04) at exception exit (eret) is wrong. It >> seems to me that only one interrupt is executed because >> after eret, MIPS_HFLAG_EXL stays set in env->hflags. Then, >> at next interrupt, system correctly checks for >> MIPS_HFLAG_EXL, but this is still set and no further >> interrupt happens. Dirk and I have been following up on this privately and could verify that it was indeed an issue with the testcase. QEMU is not causing any problem here. > This explains some weirdness I saw on my hacked up qemu > when running a mips32r2-compiled Linux kernel. What exactly included that hack? Some new mips32r2 insns like rdhw? FWIW, since there seems to be some FUD in the air, occasionally: I would like to state that Linux 2.6.15 and QEMU CVS HEAD works for me out-of-the-box. I'm using a MIPS r4k big endian configuration. On Thu, 17 Aug 2006, Marius Groeger wrote: > Having said that, I'm currently playing with nested interrupts - let's see > how that checks out... :-) I would like to take the opportunity to state that I verified nested interrupts on QEMU and they seem to be working. The tested sequence was: userspace -> NIC interrupt exception -> interrupt service for NIC -> Enable interrupts -> Timer interrupt exception -> interrupt service for Timer -> Enable Interrupts -> ERET ERET back in userspace Regards, Marius -- Marius Groeger SYSGO AG Embedded and Real-Time Software Voice: +49 6136 9948 0 FAX: +49 6136 9948 10 www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com