From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O07v6-0000sv-Pi for qemu-devel@nongnu.org; Fri, 09 Apr 2010 02:42:24 -0400 Received: from [140.186.70.92] (port=34754 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O07v4-0000sn-Hi for qemu-devel@nongnu.org; Fri, 09 Apr 2010 02:42:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O07v3-0008HR-2y for qemu-devel@nongnu.org; Fri, 09 Apr 2010 02:42:22 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:64858) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O07v2-0008HG-J4 for qemu-devel@nongnu.org; Fri, 09 Apr 2010 02:42:21 -0400 Message-ID: <4BBECC3F.7050207@mail.berlios.de> Date: Fri, 09 Apr 2010 08:42:07 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1270733932-7906-1-git-send-email-weil@mail.berlios.de> <20100408224405.GB2220@volta.aurel32.net> In-Reply-To: <20100408224405.GB2220@volta.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] tcp/mips: Change TCG_AREG0 (fp -> s0) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: QEMU Developers Aurelien Jarno schrieb: > On Thu, Apr 08, 2010 at 03:38:52PM +0200, Stefan Weil wrote: > >> Register fp is a bad choice for compilations without >> optimisation, because the compiler makes heavy use >> of this register (so the resulting code crashes). >> > > I don't fully understand why the compiler makes use of this register in > code where env is declared as register fp. > fp = frame pointer is special. See Paul's answer. > >> Register s0 was used for TCG_AREG1 in earlier releases, >> but was no longer used and is now free for TCG_AREG0. >> >> The resulting code works for compilations without >> optimisation (tested with qemu mips in qemu mips >> on x86 host). >> > > The patch is not complete, at least some changes are missing to > tcg_target_callee_save_regs. > Thanks. I'll send an updated patch. Regards, Stefan