Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F89Cg-0000yT-RI for qemu-devel@nongnu.org; Sat, 11 Feb 2006 23:51:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F89Cf-0000xJ-5x for qemu-devel@nongnu.org; Sat, 11 Feb 2006 23:51:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F89Cb-0000wh-Sc for qemu-devel@nongnu.org; Sat, 11 Feb 2006 23:51:16 -0500 Received: from [69.9.180.118] (helo=mail.squishy.cc) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F89Gl-0004u2-01 for qemu-devel@nongnu.org; Sat, 11 Feb 2006 23:55:31 -0500 Date: Sat, 11 Feb 2006 20:51:10 -0800 (PST) From: Jurij Smakov In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Qemu-devel] Re: Some patches for qemu on sparc Reply-To: jurij@wooyd.org, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On Sat, 11 Feb 2006, Blue Swirl wrote: >> Thanks for your feedback. I've added additional check to dyngen.c, which >> checks that function has either save; in the beginning and ret; restore; >> in the end, or ends in retl; nop;. That allowed me to get past the arm >> target build failure. Now it fails (during dyngen check) on ppc target, the >> culprit is the following function: > > Just keep the instruction after retl, if it's not a nop. Stack adjustments > could be combined someplace, but that's a problem with all architectures, not > just sparc. > > That is: > insn1 > retl > insn3 > > should become: > insn1 > insn2 > > In some cases there is just one instruction after retl with nothing before > it. Sorry, I am not familiar with qemu internals enough to understand that. It currently fails the build in the sanity check implemented in dyngen.c. We figured out so far that there might be two valid cases: save;...ret;restore; and ....;retl;nop;. Are you saying that the function ending in retl;some_insn; is valid as well and the check has to be modified yet again to accomodate this (third) case? Best regards, Jurij Smakov jurij@wooyd.org Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC