From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jk7a8-00008k-4r for qemu-devel@nongnu.org; Thu, 10 Apr 2008 20:57:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jk7a6-00006D-5b for qemu-devel@nongnu.org; Thu, 10 Apr 2008 20:57:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jk7a5-00005z-Or for qemu-devel@nongnu.org; Thu, 10 Apr 2008 20:57:29 -0400 Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jk7a5-000288-EL for qemu-devel@nongnu.org; Thu, 10 Apr 2008 20:57:29 -0400 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080411010020.BRIW13584.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Fri, 11 Apr 2008 02:00:20 +0100 Received: from miranda.arrow ([213.107.26.151]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080411005935.BEAI17393.aamtaout02-winn.ispmail.ntl.com@miranda.arrow> for ; Fri, 11 Apr 2008 01:59:35 +0100 Received: from sdb by miranda.arrow with local (Exim 4.63) (envelope-from ) id 1Jk7Zy-0007br-MF for qemu-devel@nongnu.org; Fri, 11 Apr 2008 01:57:22 +0100 Date: Fri, 11 Apr 2008 01:57:22 +0100 From: Stuart Brady Message-ID: <20080411005722.GA29173@miranda.arrow> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] tcg_target_prologue() 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 Hi, I recently tried using the C version of the TB call in cpu-exec.c, "T0 = gen_func();", with HPPA host support. However, I must then save the link register, or else it would be overwritten... but if I use tcg_target_prologue(), I find that goto_tb sometimes jumps to the prologue, but it sometimes jumps past the prologue, instead! I've fixed the bug[1] that caused me to investigate this, so for the time being, I'll continue calling TBs from inline assembly code, but it might be nice to spare others the pain of trying tcg_target_prologue() and failing. Any thoughts? Cheers, -- Stuart Brady [1] Apparently, frame pointer registers are best marked 'reserved'. Oops.