Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JlRDl-0004Ui-IF for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:07:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JlRDj-0004Tt-BW for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:07:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlRDj-0004Tk-3d for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:07:51 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JlRDi-0000yP-DW for qemu-devel@nongnu.org; Mon, 14 Apr 2008 12:07:50 -0400 From: Clemens Kolbitsch MIME-Version: 1.0 Content-Disposition: inline Date: Mon, 14 Apr 2008 18:08:34 +0200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200804141808.34958.clemens.kol@gmx.at> Subject: [Qemu-devel] dyngen_code in 16 bit 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! 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... Now I have a problem when having block chaining enabled (that I don't want to disable for performance reasons :-/): The code_gen_buffer sometimes contains code areas that span more than 0xffff bytes, however, dyngen and all functions related to it use 16 bit pointers, etc. Therefore, e.g. the dyngen_code function uses the 16 bit pointers to overwrite certain params and of course destroys the TB-code. When working with x86 hosts and guests (both 32 bit), is there a specific reason for all these pointers to be 16 bits or has it just been a safe assumption up to now?? I have tried rewriting the code to use 32 bit, but keep getting segfaults... however, of course, I might have missed some code still. Any help is - as always - greatly appreciated!! Cheers, Clemens