Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWwqN-0000Cx-OR for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:24:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWwqN-0000Cc-6y for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:24:07 -0400 Received: from [199.232.76.173] (port=47531 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWwqN-0000CZ-1m for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:24:07 -0400 Received: from hall.aurel32.net ([91.121.138.14]:47745) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWwqM-00051b-Sm for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:24:07 -0400 Received: from volta.aurel32.net ([2002:52e8:2fb:1:21e:8cff:feb0:693b]) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KWwqK-00070q-NS for qemu-devel@nongnu.org; Sat, 23 Aug 2008 19:24:04 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1KWwqK-0002s5-3f for qemu-devel@nongnu.org; Sat, 23 Aug 2008 19:24:04 +0200 Date: Sat, 23 Aug 2008 19:24:04 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] MIPS: Fix dmtc0 instruction Message-ID: <20080823172404.GK32516@volta.aurel32.net> References: <48B03DFA.6080404@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48B03DFA.6080404@reactos.org> 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 Sat, Aug 23, 2008 at 06:42:34PM +0200, Hervé Poussineau wrote: > Hi, > > In gen_dmtc0 function, TCG temporary variable t0 is freed at the end of > the function. Variable is freed again in the gen_dmtc0 caller. > I removed the free in gen_dmtc0, to do like in gen_dmfc0, gen_mfc0, > gen_mtc0. > > Incidentally, this unregresses NetBSD on Pica 61. This was also affecting Linux MIPS64 and I have noticed the problem this morning (though it seems to be a few weeks old). I have applied the patch, and also removed another tcg_temp_free(t0) which has been left. Thanks! > Hervé > Index: target-mips/translate.c > =================================================================== > --- target-mips/translate.c (revision 5074) > +++ target-mips/translate.c (working copy) > @@ -5188,7 +5188,6 @@ > rn, reg, sel); > } > #endif > - tcg_temp_free(t0); > /* For simplicity assume that all writes can cause interrupts. */ > if (use_icount) { > gen_io_end(); -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net