From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jysuf-0008Rf-DQ for qemu-devel@nongnu.org; Wed, 21 May 2008 14:19:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jysud-0008Ok-T9 for qemu-devel@nongnu.org; Wed, 21 May 2008 14:19:45 -0400 Received: from [199.232.76.173] (port=42377 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jysud-0008OV-O4 for qemu-devel@nongnu.org; Wed, 21 May 2008 14:19:43 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194]:58315 helo=il.qumranet.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jysud-0007P2-N2 for qemu-devel@nongnu.org; Wed, 21 May 2008 14:19:43 -0400 Message-ID: <483467BB.7000803@qumranet.com> Date: Wed, 21 May 2008 21:19:39 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [4514] convert remaining segment handling to TCG References: <4834556E.4030504@qumranet.com> <48345E88.5080908@bellard.org> In-Reply-To: <48345E88.5080908@bellard.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org Fabrice Bellard wrote: >> >> Does qemu generate different code when the segment bases are zero? >> The segment base additions can be trivially avoided in this case. > > Yes, but only when DS, ES and SS have zero bases. > Sure, that's the common case. On a slightly different subject, are you considering improving tcg optimization? It can even be made dynamic, with aggressive optimization only kicking in if a block has been executed a large number of times. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.