From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JlROw-0002zM-LI for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:19:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JlROv-0002xu-0l for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:19:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlROu-0002xd-Kz for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:19:24 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JlROu-0004Ad-5n for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:19:24 -0400 From: Paul Brook Subject: Re: [Qemu-devel] dyngen_code in 16 bit Date: Mon, 14 Apr 2008 17:19:19 +0100 References: <200804141808.34958.clemens.kol@gmx.at> In-Reply-To: <200804141808.34958.clemens.kol@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804141719.19754.paul@codesourcery.com> 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 Cc: Clemens Kolbitsch On Monday 14 April 2008, Clemens Kolbitsch wrote: > Hi! > For a research project I extended Qemu to include some extra code inside > the op_XXX instructions that increased the generated TB-code's size to > quite some extend... Don't do that. Put it in a helper function. The performance overhead will be minimal. Most likely the segfaults are because you're overrunning a buffer. qemu has static limits on the maximum size of an guest instruction. Paul